changed req.connection.encrpyted to req.secure

v1.18.x
Baris Soner Usakli 12 years ago
parent 910e9d6ee0
commit 16117d4331

@ -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();

Loading…
Cancel
Save