Add some debug log
This commit is contained in:
parent
f1cc110ef4
commit
8990095d35
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ module.exports = function(req) {
|
||||||
const isSslEnvSet = process.env.SSL === 'true';
|
const isSslEnvSet = process.env.SSL === 'true';
|
||||||
const isHeaderSsl = req.header('X-Forwaded-Proto') === 'https';
|
const isHeaderSsl = req.header('X-Forwaded-Proto') === 'https';
|
||||||
|
|
||||||
|
console.log(req.headers);
|
||||||
|
|
||||||
const proto = isConnectionEncrypted || isSslEnvSet || isHeaderSsl ? 'https' : 'http';
|
const proto = isConnectionEncrypted || isSslEnvSet || isHeaderSsl ? 'https' : 'http';
|
||||||
|
|
||||||
return proto.split(/\s*,\s*/)[0];
|
return proto.split(/\s*,\s*/)[0];
|
||||||
|
|
Loading…
Reference in a new issue