-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #5304 HTTP2 HostHeader #5307
Conversation
Updated HostHeaderCustomizer to actually add the Host header, either from values passed in the custructor or from the getServerName and getServerPort methods. The HttpURI is no longer updated. Signed-off-by: Greg Wilkins <[email protected]>
jetty-server/src/main/java/org/eclipse/jetty/server/HostHeaderCustomizer.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.
This probably needs test cases, as there is a flaw in the null serverName case in this code.
jetty-server/src/main/java/org/eclipse/jetty/server/HostHeaderCustomizer.java
Show resolved
Hide resolved
+ Found and fixed bug in HttpFields + Added port normalization support to HttpScheme + added test Signed-off-by: Greg Wilkins <[email protected]>
Signed-off-by: Greg Wilkins <[email protected]>
+ refixed bug in HttpFields Signed-off-by: Greg Wilkins <[email protected]>
+ still fixing HttpFields bug Signed-off-by: Greg Wilkins <[email protected]>
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.
Some minor concerns.
jetty-server/src/main/java/org/eclipse/jetty/server/HostHeaderCustomizer.java
Show resolved
Hide resolved
jetty-server/src/main/java/org/eclipse/jetty/server/HostHeaderCustomizer.java
Show resolved
Hide resolved
updates from review
@joakime nudge |
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.
accidentally Mutable?
jetty-server/src/main/java/org/eclipse/jetty/server/HostHeaderCustomizer.java
Show resolved
Hide resolved
@joakim, it's not accidentally mutable. The style we mostly use is that the setter decides if it wants the mutable or immutable reference. So in this case request will call asImutable on the passed HttpField. The idea is that the callee decides and the caller can never make the request fields mutable |
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.
LGTM
#5304
Updated HostHeaderCustomizer to actually add the Host header, either from values passed in the custructor or from the getServerName and getServerPort methods.
The HttpURI is no longer updated.
Signed-off-by: Greg Wilkins [email protected]