-
Bug
-
Resolution: Done
-
Major
-
Beta 8
-
None
-
None
the client framework requires a content type on response without content
client interface:
@GET
@Path("header")
ClientResponse<Void> getHeader();
use case: no response body, but client needs access to headers
stacktrace:
org.jboss.resteasy.client.ClientResponseFailure: No Content-Type
header specified
at org.jboss.resteasy.client.core.ClientInvoker.extractClientResponse(ClientInvoker.java:309)
at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:229)
at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:22)
at $Proxy19.getHeader(Unknown Source)
at org.jboss.resteasy.test.finegrain.client.ClientResponseTest.testClientResponse(ClientResponseTest.java:97)