kopia lustrzana https://github.com/c9/core
when strange unicode characters are in the string then content length is not correct
rodzic
4e7d2b214d
commit
d0a2dfddd6
|
@ -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 = {
|
||||
|
|
Ładowanie…
Reference in New Issue