|
From: Michael B. <mic...@gm...> - 2008-10-30 21:42:29
|
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)
a patch with unit test is included
Michael Brackx
|