diff --git a/lib/request.js b/lib/request.js index 372a9915e9..0eedaf5dd7 100644 --- a/lib/request.js +++ b/lib/request.js @@ -311,9 +311,7 @@ defineGetter(req, 'protocol', function protocol(){ * @public */ -defineGetter(req, 'secure', function secure(){ - return this.protocol === 'https'; -}); +req.secure = req.protocol === 'https'; /** * Return the remote address from the trusted proxy.