dfws-ve-taro-request 0.1.3 → 0.1.4

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