[
https://issues.apache.org/jira/browse/HTTPCLIENT-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-1464.
-------------------------------------------
Resolution: Fixed
Implemented in SVN trunk. Please review / test.
Oleg
> Add ability to override HttpClientBuilder.disableContentCompression() setting
> at request execution level
> --------------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1464
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1464
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient
> Affects Versions: 4.3.1, 4.3.2
> Reporter: Javad Tohidi
> Priority: Minor
> Labels: features
> Fix For: 4.4 Alpha1
>
>
> As of version 4.3 automatic content decompression is switched on by default.
> If someone wants to disable this they can call the following method
> HttpClientBuilder.disableContentCompression() at the time of HttpClient
> creation.
> If you would like content decompression to be switched on at the HttpClient
> level but switch it off for specific requests that use this client it is
> currently not available to do so via any setting in HttpClientContext or
> RequestConfig.
> It would be nice if this setting is added to either HttpClientContext or
> RequestConfig and utilised at the appropriate time during request execution
> to override the HttpClient setting.
> The alternative for now is to create a separate HttpClient with Content
> Compression disabled for requests that need this setting.
> Please see this stack overflow question for the reason why this JIRA has been
> raised: http://stackoverflow.com/q/21818242/1547546
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]