mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
when strange unicode characters are in the string then content length is not correct
This commit is contained in:
parent
4e7d2b214d
commit
d0a2dfddd6
2
node_modules/c9/rest_client.js
generated
vendored
2
node_modules/c9/rest_client.js
generated
vendored
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user