Hi,

I am using CXF 3.5.5 as JAXRS implementation. Today I got a null Content-Type header injected via the following code:

@GET
public void someMethod(@Context HttpHeaders headers) {
  ...
}

Calling this method without a Content-Type header (which makes no sense with a GET request) did the following: While headers.getMediaType() returned null as expected, I was also expecting headers.getRequestHeaders().get("Content-Type") to return null, but actually I got a List with one String element being null. May this be a bug?

BR
Erich.

Reply via email to