From b5438f2ba8f04a1157eefc00c6517f4b27f7a5fa Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 29 Nov 2021 12:14:40 +0530 Subject: [PATCH] Do not set content-length --- src/matrix/net/HomeServerApi.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index cd604388..f7e39544 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -75,8 +75,6 @@ export class HomeServerApi { if (body) { const encoded = encodeBody(body); headers.set("Content-Type", encoded.mimeType); - //todo: remove this? - headers.set("Content-Length", encoded.length); encodedBody = encoded.body; }