Skip to content
This repository has been archived by the owner on Aug 9, 2018. It is now read-only.

Get the request protocol from express request. #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graingert
Copy link

No description provided.

@kshay
Copy link
Contributor

kshay commented Jun 28, 2016

This seems fine, but we might be safer with request.protocol || 'http' since this module tends to be used in contexts with mocked requests that don't necessarily have a full set of properties.

@graingert
Copy link
Author

graingert commented Jun 28, 2016

might also be worth looking at req.secure too, ah turns out that just looks at require.protocol

@graingert
Copy link
Author

@kshay ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants