-
Notifications
You must be signed in to change notification settings - Fork 651
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
Conversation
The X-Forwarded-Prefix can be obtained via `HttpServerRequest#forwardedPrefix()`. Resolves #3432
reactor-netty-http/src/main/java/reactor/netty/http/server/ConnectionInfo.java
Outdated
Show resolved
Hide resolved
reactor-netty-http/src/main/java/reactor/netty/http/server/ConnectionInfo.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work
reactor-netty-http/src/main/java/reactor/netty/http/server/ConnectionInfo.java
Show resolved
Hide resolved
reactor-netty-http/src/main/java/reactor/netty/http/server/ConnectionInfo.java
Outdated
Show resolved
Hide resolved
@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. |
@violetagg as discussed, I updated the PR to include validation whether the header value starts with a slash. |
The X-Forwarded-Prefix can be obtained via
HttpServerRequest#forwardedPrefix()
.