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

Michael Osipov commented on WAGON-432:
--------------------------------------

[~jvanzyl], I did not try the patch. It might work. Though, this is merely a 
workaround for a bigger issue. The header handling code is a mess to me. We can 
handle it like this for now but should create another issue to clean up the 
code.

[~rfscholte], how can this be a problem? {{HttpClient}} sets a {{User-Agent}} 
by default if you don't override it. Wagon is not the transport but the 
{{HttpClient}} is.

> 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