Hi all,
When I upgraded the CXF 4.0.1 in JBossWS and the some of the tests failed
because the client sends out some strange request which mixed the
HTTP/1.1 and HTTP/2 in request headers:

POST /jaxws-securityDomain2/authz HTTP/1.1
Connection: Upgrade, HTTP2-Settings
Content-Length: 207
Host: 127.0.0.1:23088
HTTP2-Settings: AAEAAEAAAAIAAAABAAMAAABkAAQBAAAAAAUAAEAA
Upgrade: h2c
Accept: */*
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
User-Agent: Apache-CXF/4.0.1

After I force the http version with:
((BindingProvider)port).getRequestContext().put("org.apache.cxf.transport.http.forceVersion",
"1.1"), and it works.

It looks like this is some backward compatible issue or bug in CXF 4.0.1
and we should still make HTTP/1.1 as the default version.  WDYT ?

>From the commit log , this change could introduce this change :
https://github.com/apache/cxf/commit/9b36a4bc996615e0ed02795c74167586a2bb11df


Thanks,
Jim

Reply via email to