when strange unicode characters are in the string then content length is not correct

This commit is contained in:
Fabian Jakobs 2016-03-31 09:21:43 +00:00
parent 4e7d2b214d
commit d0a2dfddd6

2
node_modules/c9/rest_client.js generated vendored
View File

@ -36,7 +36,7 @@ function RestClient(host, port, config) {
var headers = _.extend({
"Accept": "application/json",
"Content-Type": "application/json",
"Content-Length": payload.length
"Content-Length": Buffer.byteLength(payload)
}, config.headers || {});
var options = {