src/ref.js
function is_https(req) {
	if(req.headers && req.headers['x-forwarded-proto'] && req.headers['x-forwarded-proto'] === 'https') { return true; }
	return (req && req.connection && req.connection.encrypted) ? true : false;
}
function is_https(req) {
	if(req.headers && req.headers['x-forwarded-proto'] && req.headers['x-forwarded-proto'] === 'https') { return true; }
	return (req && req.connection && req.connection.encrypted) ? true : false;
}
function is_https ( req ) { if ( req . headers && req . headers [ 'x-forwarded-proto' ] && req . headers [ 'x-forwarded-proto' ] === 'https' ) { return true ; } return ( req && req . connection && req . connection . encrypted ) ? true : false ; }
Check if connection is HTTPS
Check if connection is HTTPS