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

Server name from nette/http #566

Merged
merged 5 commits into from
Jun 20, 2023
Merged

Server name from nette/http #566

merged 5 commits into from
Jun 20, 2023

Conversation

janfejtek
Copy link
Contributor

  • new feature? yes
  • BC break? I don't think so

When using nette behind proxy or in containers, server name is localhost. When nette/http is used, it reads actual host from proxy headers - https://github.com/nette/http/blob/7a92a2a61aaf2ebb74df11bb4a6f56daf20a1ef6/src/Http/RequestFactory.php#L294

@dg dg force-pushed the master branch 2 times, most recently from 5e75f72 to db0a128 Compare June 19, 2023 11:30
@dg
Copy link
Member

dg commented Jun 19, 2023

A better way to do this is to allow the MailSender object to set $host directly, rather than passing the entire Request to it.

@janfejtek
Copy link
Contributor Author

Is this ok?

@dg
Copy link
Member

dg commented Jun 20, 2023

Great, thanks

@dg dg merged commit 69cb79a into nette:master Jun 20, 2023
dg pushed a commit that referenced this pull request Jun 20, 2023
dg pushed a commit that referenced this pull request Jul 30, 2023
dg pushed a commit that referenced this pull request Jul 30, 2023
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