More headers that don't need to be sent
This commit is contained in:
parent
798b37104b
commit
6a57e5cfe8
2 changed files with 0 additions and 3 deletions
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue