This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 448232899a2 camel-jetty use HTTP1.1 (#15746) 448232899a2 is described below commit 448232899a2ff2abb2935259e0724e7a373ce92e Author: Jono Morris <j...@apache.org> AuthorDate: Sun Sep 29 06:46:06 2024 +1300 camel-jetty use HTTP1.1 (#15746) --- .../test/java/org/apache/camel/component/jetty/HttpHeaderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpHeaderTest.java b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpHeaderTest.java index 88406fac9f1..1b22ba94929 100644 --- a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpHeaderTest.java +++ b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpHeaderTest.java @@ -68,7 +68,7 @@ public class HttpHeaderTest extends BaseJettyTest { public void configure() { from("direct:start").setHeader("SOAPAction", constant("http://xxx.com/interfaces/ticket")) .setHeader("Content-Type", constant("text/xml; charset=utf-8")) - .setHeader(Exchange.HTTP_PROTOCOL_VERSION, constant("HTTP/1.0")) + .setHeader(Exchange.HTTP_PROTOCOL_VERSION, constant("HTTP/1.1")) .to("http://localhost:{{port}}/myapp/mytest"); from("jetty:http://localhost:{{port}}/myapp/mytest").process(new Processor() { @@ -76,7 +76,7 @@ public class HttpHeaderTest extends BaseJettyTest { Map<String, Object> headers = exchange.getIn().getHeaders(); ServletRequest request = exchange.getIn(HttpMessage.class).getRequest(); assertNotNull(request); - assertEquals("HTTP/1.0", request.getProtocol(), "Get a wong http protocol version"); + assertEquals("HTTP/1.1", request.getProtocol(), "Get a wong http protocol version"); for (Entry<String, Object> entry : headers.entrySet()) { if ("SOAPAction".equals(entry.getKey()) && "http://xxx.com/interfaces/ticket".equals(entry.getValue())) {