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 22:23:50 UTC
[maven-wagon] branch master updated: [WAGON-596] Add configuration
property 'http.protocol.handle-uri-normalization'
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git
The following commit(s) were added to refs/heads/master by this push:
new 4a9cdc2 [WAGON-596] Add configuration property 'http.protocol.handle-uri-normalization'
4a9cdc2 is described below
commit 4a9cdc2996e3f0f3ffa673f8d4ae4a0c051d0c41
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..0a1320a 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( value ) );
+ }
}
}
}