diff options
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy-common/src/main')
-rw-r--r-- | archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/WagonFactoryRequest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/WagonFactoryRequest.java b/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/WagonFactoryRequest.java index 40544022d..e348899ef 100644 --- a/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/WagonFactoryRequest.java +++ b/archiva-modules/archiva-base/archiva-proxy-common/src/main/java/org/apache/archiva/proxy/common/WagonFactoryRequest.java @@ -19,6 +19,7 @@ package org.apache.archiva.proxy.common; */ import org.apache.archiva.admin.model.beans.NetworkProxy; +import org.apache.commons.lang.StringUtils; import java.util.HashMap; import java.util.Map; @@ -45,7 +46,7 @@ public class WagonFactoryRequest private String userAgent = DEFAULT_USER_AGENT; static { - if (System.getProperty(USER_AGENT_SYSTEM_PROPERTY)!=null && !"".equals(System.getProperty(USER_AGENT_SYSTEM_PROPERTY))) { + if ( StringUtils.isNotBlank( System.getProperty( USER_AGENT_SYSTEM_PROPERTY))) { DEFAULT_USER_AGENT=System.getProperty(USER_AGENT_SYSTEM_PROPERTY); } } |