Remove debug code
This commit is contained in:
parent
76197018d6
commit
06b8847cd8
1 changed files with 0 additions and 4 deletions
|
@ -1,9 +1,5 @@
|
|||
function getProtocol(req) {
|
||||
let proto = req.connection.encrypted || process.env.SSL === 'true' ? 'https' : 'http';
|
||||
console.log(`proto1: ${proto}`);
|
||||
// only do this if you trust the proxy
|
||||
proto = req.headers['x-forwarded-proto'] || proto;
|
||||
console.log(`proto2: ${proto}`);
|
||||
return proto.split(/\s*,\s*/)[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue