[
https://issues.apache.org/jira/browse/HTTPASYNC-62?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPASYNC-62.
----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0.1
Patch committed to SVN trunk. Actually the old code did try to carry over the
Content-Type from the response message, but your implementation is massively
nicer.
Oleg
> 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
> Fix For: 4.0.1
>
> 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]