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

remove req.host= #278

Merged
merged 1 commit into from
May 5, 2014
Merged

remove req.host= #278

merged 1 commit into from
May 5, 2014

Conversation

dead-horse
Copy link
Member

No description provided.

when `app.proxy` is __true__, otherwise `Host` is used.

### req.host=

Set the `Host` header field to a new value.
Set the `Host` header field to a new value. Set the `X-Forwarded-Host`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should just get rid of .host=, I can't think of any reason it would ever be useful

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for remove. it is weird

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh weird. i never knew we even had .host=.

@dead-horse dead-horse changed the title Host setter remove req.host= May 5, 2014
@dead-horse
Copy link
Member Author

removed

@jonathanong
Copy link
Member

just as an aside with all this host stuff: expressjs/express#2099

any thoughts? https://github.com/expressjs/proxy-addr was just created.

tj added a commit that referenced this pull request May 5, 2014
@tj tj merged commit 50ffb86 into koajs:master May 5, 2014
@dead-horse dead-horse deleted the host-setter branch May 6, 2014 07:31
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.

3 participants