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

Parse X-Forwarded-Prefix request header #3436

Merged
merged 6 commits into from
Oct 1, 2024
Merged

Parse X-Forwarded-Prefix request header #3436

merged 6 commits into from
Oct 1, 2024

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Sep 18, 2024

The X-Forwarded-Prefix can be obtained via HttpServerRequest#forwardedPrefix().

The X-Forwarded-Prefix can be obtained via
`HttpServerRequest#forwardedPrefix()`.

Resolves #3432
@chemicL chemicL added the type/enhancement A general enhancement label Sep 18, 2024
@chemicL chemicL added this to the 1.1.23 milestone Sep 18, 2024
@chemicL chemicL self-assigned this Sep 18, 2024
@chemicL chemicL linked an issue Sep 18, 2024 that may be closed by this pull request
Copy link
Member

@violetagg violetagg left a comment

Choose a reason for hiding this comment

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

nice work

@chemicL
Copy link
Member Author

chemicL commented Sep 23, 2024

@violetagg I addressed the aspect of distinguishing missing header vs empty content and also added the handling of comma-separated components with removal of the trailing forward slashes in each component.

@chemicL
Copy link
Member Author

chemicL commented Oct 1, 2024

@violetagg as discussed, I updated the PR to include validation whether the header value starts with a slash.

@chemicL chemicL merged commit 05b30b8 into 1.1.x Oct 1, 2024
14 checks passed
@chemicL chemicL deleted the x-forwarded-prefix branch October 1, 2024 14:09
chemicL added a commit that referenced this pull request Oct 1, 2024
violetagg added a commit that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support X-Forwarded-Prefix in DefaultHttpForwardedHeaderHandler
2 participants