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/05/17 21:31:55 UTC

[maven-wagon] branch WAGON-596 created (now de1844c)

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

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


      at de1844c  [WAGON-596] Add configuration property 'http.protocol.handle-uri-normalization'

This branch includes the following new commits:

     new de1844c  [WAGON-596] Add configuration property 'http.protocol.handle-uri-normalization'

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-596] Add configuration property 'http.protocol.handle-uri-normalization'

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

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

commit de1844cfa7601f969fe955aba8e5b9d18edd226e
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun May 17 23:31:35 2020 +0200

    [WAGON-596] Add configuration property 'http.protocol.handle-uri-normalization'
---
 .../java/org/apache/maven/wagon/shared/http/ConfigurationUtils.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/ConfigurationUtils.java b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/ConfigurationUtils.java
index a825df1..d561a51 100755
--- a/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/ConfigurationUtils.java
+++ b/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/ConfigurationUtils.java
@@ -55,7 +55,7 @@ public class ConfigurationUtils
     private static final String HANDLE_REDIRECTS            = "http.protocol.handle-redirects";
     private static final String REJECT_RELATIVE_REDIRECT    = "http.protocol.reject-relative-redirect";
     private static final String HANDLE_CONTENT_COMPRESSION  = "http.protocol.handle-content-compression";
-    // TODO Add contentCompressionEnabled and normalizeUri
+    private static final String HANDLE_URI_NORMALIZATION    = "http.protocol.handle-uri-normalization";
 
     private static final String COERCE_PATTERN = "%(\\w+),(.+)";
 
@@ -155,6 +155,10 @@ public class ConfigurationUtils
                 {
                     builder.setContentCompressionEnabled( Boolean.valueOf( value ) );
                 }
+                else if ( key.equals ( HANDLE_URI_NORMALIZATION ) )
+                {
+                    builder.setNormalizeUri( Boolean.valueOf( false ) );
+                }
             }
         }
     }