I've been trying to use Apache CXF JAX-RS (version 3.0.4) to send GET requests to a Spring Boot application. Unfortunately CFX adds a Content-Type: */* to the request headers which is not accepted by spring resulting in a 400 response stating "'Content-Type' cannot contain wildcard type '*'".
Since a Content-Type header on a GET request doesn't really make sense when the request haven't got a request entity I guess it must be a bug. A possible workaround is to add "cxf-rt-transports-http-hc" as a dependency and setting the property "use.async.http.conduit". Is it a valid durable way to solve the issue? -- View this message in context: http://cxf.547215.n5.nabble.com/Why-does-CXF-JAX-RS-set-content-type-on-GET-requests-with-no-body-tp5759908.html Sent from the cxf-user mailing list archive at Nabble.com.
