Skip to content

Conversation

@Izolex
Copy link
Contributor

@Izolex Izolex commented Nov 15, 2023

The unification of host and port parsing was added in #229. Initially, I was uncertain whether the distinct parsing approaches for the Host and X-Forwarded headers compared to the X-Forwarded-Host header were intentional, since the X-Forwarded-* headers lack a formal specification. However, it's commonly observed that the X-Forwarded-Host header may contain the value of the Host header, which may include the port. Currently, if this header includes both the host and the port, the entire string is simply stored in the host field of the resulting URL. The goal of this PR is to parse this header using the parseHostAndPort method, to ensure that the port is correctly separated and stored into the port field.

Since this PR uses the method added in #229 it's based on the commit that was merged into the master branch.

@dg dg force-pushed the master branch 5 times, most recently from 55488bd to 2042d2e Compare December 11, 2023 13:01
@dg dg force-pushed the master branch 2 times, most recently from 4960652 to 5e67add Compare May 2, 2024 10:56
@dg
Copy link
Member

dg commented Nov 4, 2024

Thanks

@dg dg merged commit 089e9f9 into nette:master Nov 4, 2024
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