[ 
https://issues.apache.org/jira/browse/WAGON-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491580#comment-14491580
 ] 

Michael Osipov edited comment on WAGON-432 at 4/12/15 4:57 PM:
---------------------------------------------------------------

That is confusing because the {{HttpClientBuilder}} does *always* set a 
[default user 
agent|https://github.com/apache/httpclient/blob/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java#L1029-L1038]
 if you won't provide one.
If something did not work, I assume that something is fishy about the Wagon 
code.


was (Author: michael-o):
That is confusing because the {{HttpClientBuilder}} does **always** set a 
[[https://github.com/apache/httpclient/blob/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java#L1029-L1038|default
 user agent]] if you won't provide one.
If something did not work, I assume that something is fishy about the Wagon 
code.

> Maven sends duplicate User-Agent header
> ---------------------------------------
>
>                 Key: WAGON-432
>                 URL: https://issues.apache.org/jira/browse/WAGON-432
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http
>    Affects Versions: 2.8
>            Reporter: Michael Osipov
>            Priority: Minor
>         Attachments: 
> 0001-WAGON-432-do-not-set-User-Agent-header-by-default.patch, 
> headergroup-after-setHeaders.png, headergroup-after-setUserAgent.png, 
> headergroup-before-execution.png, maven-3.1.1.png, maven-3.2.2.png
>
>
> Maven 3.1.1 sends only one {{User-Agent}} header, 3.2.2 sends twice. See 
> screenshots.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to