[
https://issues.apache.org/jira/browse/HTTPCLIENT-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709727#comment-16709727
]
Michael Osipov commented on HTTPCLIENT-1952:
--------------------------------------------
My proposal would be to add {{HttpClientBuilder#disableDefaultUserAgent()}} and
test for that boolean in line 1045 where the default user agent is rertrieved
in the case where {{userAgentCopy}} is null.
> Allow default User Agent to be disabled
> ---------------------------------------
>
> Key: HTTPCLIENT-1952
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1952
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpCache
> Affects Versions: 4.5.6
> Reporter: Antony Bowesman
> Priority: Minor
>
> There is no way to disable the User-Agent header. In any kind of micro
> service architecture, where UA header is irrelevant, the header cannot be
> removed.
> This has been seen as an issue using JMeter, see link
> [https://bz.apache.org/bugzilla/show_bug.cgi?id=62977#c1]
> See comment #1 there from [~michael-o]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]