mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
changed req.connection.encrpyted to req.secure
This commit is contained in:
@@ -64,7 +64,7 @@ var express = require('express'),
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
|
||||
global.config.https = req.connection.encrypted !== undefined;
|
||||
global.config.https = req.secure;
|
||||
|
||||
// Don't bother with session handling for API requests
|
||||
if (/^\/api\//.test(req.url)) return next();
|
||||
|
||||
Reference in New Issue
Block a user