Skip to content

Commit

Permalink
Revert "fix(taro-h5): 响应体无数据时抛错进入reject (NervJS#4599)"
Browse files Browse the repository at this point in the history
This reverts commit 84ce3ef.
  • Loading branch information
rsnzh authored Dec 2, 2019
1 parent a42bc6e commit ab057bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/taro-h5/src/api/request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ function _request (options) {
response.headers.forEach((val, key) => {
res.header[key] = val
})
if(!response.ok) {
throw response
}
if (options.responseType === 'arraybuffer') {
return response.arrayBuffer()
}
Expand Down

0 comments on commit ab057bb

Please sign in to comment.