We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e0b31 commit 7358c01Copy full SHA for 7358c01
lib/as.js
@@ -12,7 +12,7 @@ function asBuffer(body, options) {
12
} else if (typeof body === 'object') {
13
ret = new Buffer(JSON.stringify(body), options.reqBodyEncoding);
14
} else if (typeof body === 'string') {
15
- ret = new Buffer(body, options.reqBodyEncodeing);
+ ret = new Buffer(body, options.reqBodyEncoding);
16
}
17
return ret;
18
0 commit comments