Skip to content

Commit

Permalink
Removed redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
vaa1881 committed Sep 28, 2018
1 parent 249be8b commit 712faa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = function(Api) {
this.httpConfig.data = this.serializer(params);
this.httpConfig.params = undefined;
this.httpConfig.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
} else if (method === this.Methods.PUT && (this.httpConfig.url + '?' + JSON.stringify(params)).length > 1500 && !data) {
} else if (method === this.Methods.PUT && (this.httpConfig.url + '?' + JSON.stringify(params)).length > 1500) {
this.httpConfig.method = this.Methods.POST;
params.method = this.Methods.PUT;
this.httpConfig.data = this.serializer(params);
Expand Down

0 comments on commit 712faa8

Please sign in to comment.