Remove redundant writeHead() call inside sendZLibJson()

This commit is contained in:
Dev 2024-01-07 20:20:10 +00:00
parent 6231a56fea
commit 9cbf87b7c3

View File

@ -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));
}
}