dfws-ve-taro-request 0.1.6 → 0.1.7
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 +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -6817,7 +6817,7 @@ var checkStatus = function (response, options, Taro) {
|
|
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
|
+
if (typeof data.status == 'undefined' && (type && !type.includes('text/html'))) {
|
6821
6821
|
data.status = 1;
|
6822
6822
|
data.errMsg = "";
|
6823
6823
|
}
|