Try not sending content-transfer-encoding headers in changesets
This commit is contained in:
Родитель
792f331fd1
Коммит
3e2bc3701d
4
batch.js
4
batch.js
|
@ -149,11 +149,11 @@ Batch.prototype.body = function()
|
|||
let buf = '';
|
||||
if(op.headers['Content-Type'] === undefined || _.isPlainObject(op.body)) {
|
||||
msg += 'Content-Type: application/json\r\n';
|
||||
msg += 'Content-Transfer-Encoding: binary\r\n';
|
||||
//msg += 'Content-Transfer-Encoding: binary\r\n';
|
||||
buf = JSON.stringify(op.body);
|
||||
} else {
|
||||
msg += `Content-Type: ${op.headers['Content-Type']}\r\n`;
|
||||
msg += 'Content-Transfer-Encoding: binary\r\n';
|
||||
//msg += 'Content-Transfer-Encoding: binary\r\n';
|
||||
buf = op.body.toString();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче