Do not set content-length

This commit is contained in:
RMidhunSuresh 2021-11-29 12:14:40 +05:30
parent 4f43398db0
commit b5438f2ba8

View file

@ -75,8 +75,6 @@ export class HomeServerApi {
if (body) { if (body) {
const encoded = encodeBody(body); const encoded = encodeBody(body);
headers.set("Content-Type", encoded.mimeType); headers.set("Content-Type", encoded.mimeType);
//todo: remove this?
headers.set("Content-Length", encoded.length);
encodedBody = encoded.body; encodedBody = encoded.body;
} }