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

Unify and fix host parsing in RequestFactory #229

Merged
merged 2 commits into from Nov 14, 2023

Conversation

Izolex
Copy link
Contributor

@Izolex Izolex commented Nov 13, 2023

  • bug fix
  • BC break? yes

The implementation of useForwardedProxy removes square brackets around the host filled into the resulting URL, which conflicts with RFC 3986. The specifications state that an IPv6 host should always be encapsulated in square brackets - correctly implemented in the getServer method. This PR introduces a new method parseHost, which is now used in both of these methods to unify the implementation.

@dg
Copy link
Member

dg commented Nov 14, 2023

Thanks

@dg dg merged commit 9a14e6e into nette:master Nov 14, 2023
0 of 2 checks passed
dg added a commit that referenced this pull request Nov 14, 2023
Co-authored-by: David Grudl <david@grudl.com>
dg added a commit that referenced this pull request Nov 14, 2023
Co-authored-by: David Grudl <david@grudl.com>
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.

None yet

2 participants