mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +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) {
|
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
|
// Don't bother with session handling for API requests
|
||||||
if (/^\/api\//.test(req.url)) return next();
|
if (/^\/api\//.test(req.url)) return next();
|
||||||
|
|||||||
Reference in New Issue
Block a user