-
Bug
-
Resolution: Done
-
Major
-
2.3.14.Final
-
None
My sample code is:
public class UndertowApp {
public static void main(String[] args) {
Undertow server = Undertow.builder()
.addHttpListener(8080, "0.0.0.0")
.setHandler(exchange -> {
exchange.setProtocol(new HttpString("HTTP/1.0"));
exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "text/plain");
exchange.getResponseSender().send("Hello from Undertow!");
}).build();
server.start();
System.out.println("Server started on http://0.0.0.0:8080");
{{ }}}
}
Despite setting the protocol to "HTTP/1.0", the status line says 'HTTP/1.1".
I think it would be better if the protocol field from the HttpServerExchange were sent back to the client, not a hard-coded string.
- is incorporated by
-
JBEAP-28284 (7.4.z) UNDERTOW-2422 - Response Status Line protocol is hard-coded to "HTTP/1.1"
- Verified
-
JBEAP-28285 (8.0.z) UNDERTOW-2422 - Response Status Line protocol is hard-coded to "HTTP/1.1"
- Verified
-
WFCORE-7030 Upgrade Undertow from 2.3.17 to 2.3.18
- Resolved