You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Dmitry Potapov (JIRA)" <ji...@apache.org> on 2013/12/25 13:57:51 UTC
[jira] [Created] (HTTPASYNC-62) ZeroCopyConsumer should set
ContentType when creating FileEntity
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org