Remove redundant writeHead()
call inside sendZLibJson()
This commit is contained in:
parent
6231a56fea
commit
9cbf87b7c3
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user