Skip to content
Snippets Groups Projects
Commit 03cd561b authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

update wsapi_client to handle non-asciirequests. issue #1631

parent 3d1cae72
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ exports.post = function(cfg, path, context, postArgs, cb) {
if (typeof postArgs === 'object') {
postArgs['csrf'] = csrf;
body = JSON.stringify(postArgs);
headers['Content-Length'] = body.length;
headers['Content-Length'] = Buffer.byteLength(body);
}
var req = meth.request({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment