More headers that don't need to be sent

This commit is contained in:
Holly Stubbs 2022-04-20 07:26:39 +01:00
parent 798b37104b
commit 6a57e5cfe8
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E
2 changed files with 0 additions and 3 deletions

View file

@ -147,7 +147,6 @@ module.exports = async function(req, res, loginInfo) {
// Complete login // Complete login
res.writeHead(200, { res.writeHead(200, {
"cho-token": NewUser.uuid, "cho-token": NewUser.uuid,
"cho-protocol": global.protocolVersion,
"Connection": "keep-alive", "Connection": "keep-alive",
"Keep-Alive": "timeout=5, max=100", "Keep-Alive": "timeout=5, max=100",
}); });

View file

@ -319,8 +319,6 @@ module.exports = async function(req, res) {
res.removeHeader('X-Powered-By'); res.removeHeader('X-Powered-By');
res.removeHeader('Date'); res.removeHeader('Date');
res.writeHead(200, { res.writeHead(200, {
"cho-protocol": global.protocolVersion,
// Nice to have :)
"Connection": "keep-alive", "Connection": "keep-alive",
"Keep-Alive": "timeout=5, max=100", "Keep-Alive": "timeout=5, max=100",
}); });