Skip to content

Commit 5130d57

Browse files
author
Ray Schamp
committed
fix: make nets return json rather than arraybuffer
1 parent 7bd0e9c commit 5130d57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebHelper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ class WebHelper extends Helper {
155155
}
156156
return nets(Object.assign({
157157
body: data,
158-
method: method
158+
method: method,
159+
encoding: undefined // eslint-disable-line no-undefined
159160
}, reqConfig), (err, resp, body) => {
160161
if (err || Math.floor(resp.statusCode / 100) !== 2) {
161162
return reject(err || resp.statusCode);

0 commit comments

Comments
 (0)