From f873edb456eb9e16e943e91b186a7a6d7a03a35d Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 20 Apr 2024 14:19:10 +0100 Subject: [PATCH] Revert "Inverted check to allow correct server comms" This reverts commit 8bcb47b391f6ccb49ccf856feedd04fa6b2f61b6. --- project/src/servers/http/AkiHttpListener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/servers/http/AkiHttpListener.ts b/project/src/servers/http/AkiHttpListener.ts index 8ff17214..315f5a22 100644 --- a/project/src/servers/http/AkiHttpListener.ts +++ b/project/src/servers/http/AkiHttpListener.ts @@ -64,7 +64,7 @@ export class AkiHttpListener implements IHttpListener // determine if the payload is compressed. All PUT requests are, and POST requests without // debug = 1 are as well. This should be fixed. // let compressed = req.headers["content-encoding"] === "deflate"; - const requestIsCompressed = req.headers.requestcompressed !== "0"; + const requestIsCompressed = req.headers.requestcompressed === "1"; const requestCompressed = req.method === "PUT" || requestIsCompressed; const value = requestCompressed ? zlib.inflateSync(buffer) : buffer;