-
Notifications
You must be signed in to change notification settings - Fork 992
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
[UNDERTOW-2422] Return the protocol field of the HttpServerExchange into the status line #1644
base: main
Are you sure you want to change the base?
Conversation
@ropalka The two test failures on JDK17-core, Mac and Windows, are "Buffer Leaks", which are listed as intermittent in the known test issues ticket. The failure in testRstOnPush in JDK11-ipv6 on ubuntu is, I think, another intermittent. I believe in the prior CI run, this same test failed in a different environment, and succeeded in this run. I believe that this CI run should be treated as having succeeded and that testRstOnPush should be added to the known issues list. |
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.
Id merge those 4 into 1 commit.
6e34590
to
f070969
Compare
I have squashed the 4 commits into 1. |
@@ -0,0 +1,141 @@ | |||
/* | |||
* JBoss, Home of Professional Open Source. |
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.
Please, update the year to 2024
throw UndertowMessages.MESSAGES.protocolTooLargeForBuffer(protocolString); | ||
} | ||
protocol.appendTo(buffer); | ||
// append status code, reasopn phrase, and headers |
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.
small typo
…ine. Add tests for this and the default behavior.
f070969
to
ced7235
Compare
@fl4via I have made the requested changes (and squashed the commit). |
Issue: https://issues.redhat.com/browse/UNDERTOW-2422
Currently, no matter what you set the HttpServerExchange.protocol field to, the value "HTTP/1.1" will always be used. This change will use the value of the protocol field (or "HTTP/1.1" if the field is empty) in the HTTP response's status line.
There is a test included in this PR. It confirms the default behavior and the new behavior.