From 9cbf87b7c385fda6f0a442d3766bd81698a0f701 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 7 Jan 2024 20:20:10 +0000 Subject: [PATCH] Remove redundant `writeHead()` call inside `sendZLibJson()` --- project/src/servers/http/AkiHttpListener.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/project/src/servers/http/AkiHttpListener.ts b/project/src/servers/http/AkiHttpListener.ts index cc48eb62..07ec48f6 100644 --- a/project/src/servers/http/AkiHttpListener.ts +++ b/project/src/servers/http/AkiHttpListener.ts @@ -174,8 +174,6 @@ export class AkiHttpListener implements IHttpListener public sendZlibJson(resp: ServerResponse, output: string, sessionID: string): void { - // eslint-disable-next-line @typescript-eslint/naming-convention - resp.writeHead(200, "OK", { "Content-Type": "application/json", "Set-Cookie": `PHPSESSID=${sessionID}` }); zlib.deflate(output, (_, buf) => resp.end(buf)); } }