Skip to content
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

feat: add support for req.hostname #224

Merged
merged 1 commit into from
Sep 28, 2020
Merged

feat: add support for req.hostname #224

merged 1 commit into from
Sep 28, 2020

Conversation

storm1ng
Copy link
Contributor

@storm1ng storm1ng commented Sep 28, 2020

This will add support for req.hostname specified in the expressjs documentation: http://expressjs.com/en/5x/api.html#req.hostname

Note: I didn't implement the X-Forwarded-Host check since we would need to evaluate the trust proxy option: http://expressjs.com/en/5x/api.html#app.set

@eugef
Copy link
Owner

eugef commented Sep 28, 2020

Hi @mjenny, thank you for the PR.

@eugef eugef merged commit 74440bc into eugef:master Sep 28, 2020
@storm1ng storm1ng deleted the feature/request-hostname branch September 28, 2020 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants