New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use req.secure (if set) #2

Merged
merged 1 commit into from Sep 26, 2012

Conversation

Projects
None yet
2 participants
@hatchan
Contributor

hatchan commented Sep 26, 2012

My req.connection.encrypted is always undefined, so use req.secure (http://expressjs.com/api.html#req.secure) if it is set, it also checks 'X-Forwarded-Proto' header (if the user trusts the proxy, http://expressjs.com/api.html#req.protocol)

evilpacket pushed a commit that referenced this pull request Sep 26, 2012

Adam Baldwin
Merge pull request #2 from hatchan/master
Use req.secure (if set) - Thanks @hatchan

@evilpacket evilpacket merged commit 27fc078 into helmetjs:master Sep 26, 2012

@EvanHahn EvanHahn referenced this pull request Aug 5, 2016

Closed

Add list of contributors #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment