dfws-ve-taro-request 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -6816,7 +6816,8 @@ var checkStatus = function (response, options, Taro) {
|
|
6816
6816
|
data.status = 0;
|
6817
6817
|
return data;
|
6818
6818
|
}
|
6819
|
-
|
6819
|
+
var type = response.header['Content-Type'] || response.header['content-type'] || '';
|
6820
|
+
if (typeof data.status == 'undefined' && !type.includes('text/html')) {
|
6820
6821
|
data.status = 1;
|
6821
6822
|
data.errMsg = "";
|
6822
6823
|
}
|
@@ -6857,7 +6858,7 @@ var request = (function (url, data, method, header, Taro, debug) {
|
|
6857
6858
|
'authorization': Taro.getStorageSync('ticket'),
|
6858
6859
|
've-version': header.version || '1.0.0',
|
6859
6860
|
'dfws-params': header.params || '',
|
6860
|
-
'content-type': header["content-type"] || 'application/json',
|
6861
|
+
'content-type': header["content-type"] || 'application/json;charset=utf-8',
|
6861
6862
|
'resume-language': header['resume-language'] || 'zh-CN',
|
6862
6863
|
'common-params': header['common-params'] || '',
|
6863
6864
|
}
|