You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/05 03:36:37 UTC

[shardingsphere-elasticjob-ui] branch master updated: Correct axios default value of Content-Type

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new ad54026  Correct axios default value of Content-Type
     new 6125ae4  Merge pull request #53 from TeslaCN/fixes-axios-content-type
ad54026 is described below

commit ad540269055201def87d779a093d06d2fa91f123
Author: wuweijie <ro...@me.com>
AuthorDate: Sun Oct 4 14:20:58 2020 +0800

    Correct axios default value of Content-Type
---
 .../shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js
index d4906a5..1b0d4e3 100644
--- a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js
+++ b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js
@@ -19,7 +19,7 @@ import axios from 'axios'
 import { Message } from 'element-ui'
 import C from './conf'
 
-axios.defaults.headers.post['Content-Type'] = 'application/jsoncharset=UTF-8'
+axios.defaults.headers.post['Content-Type'] = 'application/json; charset=UTF-8'
 axios.defaults.withCredentials = true
 
 function ajax(url, type, options, config) {