You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/12/19 11:56:58 UTC

[jira] [Commented] (WAGON-442) Maven doesn't always pass headers

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

Michael Osipov commented on WAGON-442:
--------------------------------------

The headers are polulated [here|https://github.com/apache/maven-wagon/blob/master/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/AbstractHttpClientWagon.java#L845-L875]. There is no distiction by HTTP method.

Does this issue still occur with Wagon 2.11-SNAPSHOT?

> Maven doesn't always pass headers
> ---------------------------------
>
>                 Key: WAGON-442
>                 URL: https://issues.apache.org/jira/browse/WAGON-442
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http
>            Reporter: Topher Cullen
>            Priority: Minor
>              Labels: close-pending
>
> As a maven user, I want headers I defined to be passed with every request. However, HTTP headers defined in the settings.xml are not always passed. Depending on what is being requested, maven seems to use different http libraries that don't behave the same. I can see this by looking at our web access logs:
> "GET /nexus/<redacted>/0.1-SNAPSHOT/maven-metadata.xml HTTP/1.1" 200 - "Apache-Maven/3.3.3 (Java 1.8.0_45; Linux 2.6.32-504.12.2.el6.x86_64)"
> "GET /nexus/content/repositories/snapshots/<redacted>/0.10-SNAPSHOT/<redacted>0.10-20150619.165444-1.war.sha1 HTTP/1.1" 200 MyHTTPHeader "Apache-HttpClient/4.3.5 (java 1.5)"



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