Created
December 4, 2013 15:34
-
-
Save EvanHahn/7789601 to your computer and use it in GitHub Desktop.
req.secure is undefined in Connect apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connect = require 'connect' | |
app = connect() | |
# find-replace "connect" with "express" and req.secure will be a boolean rather than undefined. | |
app.use (req, res) -> | |
res.setHeader 'Content-Type', 'text/plain' | |
res.end "Secure: #{req.secure}" | |
app.listen(5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment