Inverted check to allow correct server comms
This commit is contained in:
parent
ef65074dc3
commit
8bcb47b391
@ -64,7 +64,7 @@ export class AkiHttpListener implements IHttpListener
|
|||||||
// determine if the payload is compressed. All PUT requests are, and POST requests without
|
// determine if the payload is compressed. All PUT requests are, and POST requests without
|
||||||
// debug = 1 are as well. This should be fixed.
|
// debug = 1 are as well. This should be fixed.
|
||||||
// let compressed = req.headers["content-encoding"] === "deflate";
|
// let compressed = req.headers["content-encoding"] === "deflate";
|
||||||
const requestIsCompressed = req.headers.requestcompressed === "1";
|
const requestIsCompressed = req.headers.requestcompressed !== "0";
|
||||||
const requestCompressed = req.method === "PUT" || requestIsCompressed;
|
const requestCompressed = req.method === "PUT" || requestIsCompressed;
|
||||||
|
|
||||||
const value = requestCompressed ? zlib.inflateSync(buffer) : buffer;
|
const value = requestCompressed ? zlib.inflateSync(buffer) : buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user