Author: thomas.heute(a)jboss.com
Date: 2007-06-25 12:20:22 -0400 (Mon, 25 Jun 2007)
New Revision: 7535
Modified:
trunk/common/src/main/org/jboss/portal/common/net/URLTools.java
Log:
If there is no proxy, don't set a proxy
Modified: trunk/common/src/main/org/jboss/portal/common/net/URLTools.java
===================================================================
--- trunk/common/src/main/org/jboss/portal/common/net/URLTools.java 2007-06-25 15:29:08
UTC (rev 7534)
+++ trunk/common/src/main/org/jboss/portal/common/net/URLTools.java 2007-06-25 16:20:22
UTC (rev 7535)
@@ -101,7 +101,10 @@
{
HttpClient client = new HttpClient();
- client.getHostConfiguration().setProxy(PROXY_HOST, PROXY_PORT);
+ if (PROXY_HOST != null)
+ {
+ client.getHostConfiguration().setProxy(PROXY_HOST, PROXY_PORT);
+ }
// Yes deprecated but advocated way to do will not for with 2.0.2 which is what
today JBoss AS ships
if (connTimeoutMillis > 0)
Show replies by date