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.js CHANGED
@@ -6819,7 +6819,7 @@ var checkStatus = function (response, options, Taro) {
6819
6819
  return data;
6820
6820
  }
6821
6821
  var type = response.header['Content-Type'] || response.header['content-type'] || '';
6822
- if (typeof data.status == 'undefined' && !type.includes('text/html')) {
6822
+ if (typeof data.status == 'undefined' && (type && !type.includes('text/html'))) {
6823
6823
  data.status = 1;
6824
6824
  data.errMsg = "";
6825
6825
  }