@aliyun-obv/api
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -86,4 +86,6 @@ import _ from 'lodash'; | ||
return __async$1(this, arguments, function* (api, config = {}, options = {}) { | ||
var _a; | ||
const contentType = ((_a = options == null ? void 0 : options.headers) == null ? void 0 : _a["Content-Type"]) || "application/x-www-form-urlencoded"; | ||
const fetchInit = _.merge({}, this.defaults.postDefaultInit, { | ||
body: getPostParam(config) | ||
body: contentType.includes("application/json") ? JSON.stringify(config) : getPostParam(config) | ||
}); | ||
@@ -90,0 +92,0 @@ const res = yield this.callFetch(api, fetchInit, options); |
@@ -14,3 +14,3 @@ { | ||
"devDependencies": {}, | ||
"version": "0.0.28" | ||
"version": "0.0.29" | ||
} |
6709
184