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

pull/282/head
Fabian Jakobs 2016-03-31 09:21:43 +00:00
rodzic 4e7d2b214d
commit d0a2dfddd6
1 zmienionych plików z 1 dodań i 1 usunięć

2
node_modules/c9/rest_client.js wygenerowano vendored
Wyświetl plik

@ -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 = {