Skip to content

Commit

Permalink
v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Feb 10, 2017
2 parents 0a4f203 + e6b9712 commit e154470
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/sanji-rest-ui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sanji-rest-ui",
"author": "Zack Yang <[email protected]> (https://github.com/zack9433)",
"description": "sanji-rest-ui UI",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist/sanji-rest-ui.js",
"config": {
"ghooks": {
Expand Down
8 changes: 5 additions & 3 deletions src/component/restful.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ class RestProvider {

if (verb.match(/delete/)) {
reqConfig.data = data;
reqConfig.headers = {
'Content-Type': 'application/json'
};
if (reqConfig.headers) {
reqConfig.headers['Content-Type'] = 'application/json';
} else {
reqConfig.headers = { 'Content-Type': 'application/json' };
}
}

args.push(reqConfig);
Expand Down

0 comments on commit e154470

Please sign in to comment.