TryGhost/Ghost — pull request #2047 by gimelfarb (2014-01-26 22:26:56+00:00)
Title: Detect SSL connection whether or not behind a proxy

closes #1836
- adding server.enable('trust proxy') to let connect framework do the work
of detecting X-Forwarded-Proto header
- replacing explicit checking for the X-Forwarded-Proto header with just
'req.secure' boolean check