未验证 提交 e0eec75f 编写于 作者: G greenhat616

fix(requests): omit JSON based(without encryption) data

上级 97bd7fed
此差异已折叠。
......@@ -172,7 +172,13 @@ const createRequest = (method, url, data, options) => {
}
} catch (e) {
// console.log(e)
answer.body = body
try {
answer.body = JSON.parse(body.toString())
} catch (err) {
// console.log(err)
// can't decrypt and can't parse directly
answer.body = body
}
answer.status = res.status
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册