-
Bug
-
Resolution: Done
-
Major
-
2.3.1, 2.3.0.GA
-
None
When trying to read the response entity from a ClientResponseFailure exception the MessageBodyReaderInterceptors are not called so if the response is gzipped it is unable to read the response entity.
This appears to be caused by the BaseClientResponse.copyFromError(ClientResponse) method which is called by the ClientResponseFailure constructor. It reads the input stream and closes the connection, but does not apply reader interceptors to the stream. It then also removes the Content-Encoding header. Seems like a fix could be to copy the reader interceptors to the new BaseClientResponse and not remove the Content-Encoding header.