-
Bug
-
Resolution: Done
-
Major
-
None
-
None
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.
- clones
-
JBEAP-28284 (7.4.z) UNDERTOW-2422 - Response Status Line protocol is hard-coded to "HTTP/1.1"
- Verified
- incorporates
-
UNDERTOW-2422 Response Status Line protocol is hard-coded to "HTTP/1.1"
- Closed
- is incorporated by
-
JBEAP-28046 (8.0.z) Upgrade Undertow from 2.3.14.SP2-redhat-00001 to 2.3.18.SP1-redhat-00001
- Resolved