You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/03/09 21:47:19 UTC

[maven-wagon] branch WAGON-582 created (now c766255)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch WAGON-582
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git.


      at c766255  [WAGON-582] HttpMethodConfiguration#copy() performs a shallow copy only

This branch includes the following new commits:

     new c766255  [WAGON-582] HttpMethodConfiguration#copy() performs a shallow copy only

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-wagon] 01/01: [WAGON-582] HttpMethodConfiguration#copy() performs a shallow copy only

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch WAGON-582
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git

commit c766255c469bd4560d447613a2ff66dc9c5be29c
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Mar 9 22:47:05 2020 +0100

    [WAGON-582] HttpMethodConfiguration#copy() performs a shallow copy only
---
 .../org/apache/maven/wagon/shared/http/HttpMethodConfiguration.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HttpMethodConfiguration.java b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HttpMethodConfiguration.java
index dcc1bd5..cae1e35 100755
--- a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HttpMethodConfiguration.java
+++ b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HttpMethodConfiguration.java
@@ -27,7 +27,7 @@ import java.util.Map;
 import java.util.Properties;
 
 /**
- * 
+ *
  */
 public class HttpMethodConfiguration
 {
@@ -158,12 +158,12 @@ public class HttpMethodConfiguration
         copy.setReadTimeout( getReadTimeout() );
         if ( getHeaders() != null )
         {
-            copy.setHeaders( getHeaders() );
+            copy.getHeaders().putAll( getHeaders() );
         }
 
         if ( getParams() != null )
         {
-            copy.setParams( getParams() );
+            copy.getParams().putAll( getParams() );
         }
 
         copy.setUseDefaultHeaders( isUseDefaultHeaders() );