-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Case-sensitive HttpHeaders with ReadOnlyHttpHeaders #33352
Comments
I don't see anything that stands out in the commit history for 6.2. How would we reproduce this? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Sorry for the delay, I'll find the place in our build that was failing. |
@rstoyanchev this is the commit to fix things and make them case sensitive again spring-cloud/spring-cloud-gateway@b362a91 And this is the test that fails |
Specifically, this line fails spring-cloud/spring-cloud-gateway@b362a91#diff-3b5acb6faa4abf622703749c7fe9fb7df8c98536e48a642ba7e9b3d2cc7a2a1dR114 |
Possibly 4b732d6. I'll work on an isolated minimal reproducer |
I believe the fix for #33666 fixes this issue |
Spring Cloud recently upgraded to boot 3.4.0-M1 and I came across an interesting regression. Spring Cloud Gateway has various filters that work on http headers. After upgrading to framework 6.2.0-M6 I ran into a situation trying to get a "host" header using
getFirst(HttpHeaders.HOST)
. The host header existed, but as lower case. The input value toHttpHeaders
is aReadOnlyHttpHeaders
but it appears that it is not case-sensitive. I had to work around it by creating a newHttpHeaders
object and add all the values from the original. Does this ring any bells?The text was updated successfully, but these errors were encountered: