[ 
https://issues.apache.org/jira/browse/HTTPASYNC-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Potapov updated HTTPASYNC-62:
------------------------------------

    Attachment: ZeroCopyConsumer-ContentType.patch

Please, consider attached patch as a fix for this ticket

> 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
>         Attachments: ZeroCopyConsumer-ContentType.patch
>
>
> 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]

Reply via email to