Dmitry Potapov created HTTPASYNC-62:
---------------------------------------
Summary: ZeroCopyConsumer should set ContentType when creating
FileEntity
Key: HTTPASYNC-62
URL: https://issues.apache.org/jira/browse/HTTPASYNC-62
Project: HttpComponents HttpAsyncClient
Issue Type: Improvement
Affects Versions: 4.0 Final
Reporter: Dmitry Potapov
Priority: Trivial
Currently ZeroCopyConsumer.buildResult(...) creates FileEntity passing single
argument to c'tor. So, this entity cannot be passed to
EntityUtils.toString(...) as single argument.
My suggestion is to pass content type received in response to the FileEntity
c'tor.
Assumed use case is the situation when remote host returned non-200 status code
and response content is relatively short and contains error description.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]