Author: ron.sigal(a)jboss.com
Date: 2008-10-29 03:05:23 -0400 (Wed, 29 Oct 2008)
New Revision: 4630
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
Log:
JBREM-1051: createURLConnection() attempts to create "Proxy-Authorization"
request header even if proxy information is stored in system properties.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2008-10-28
02:01:34 UTC (rev 4629)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2008-10-29
07:05:23 UTC (rev 4630)
@@ -838,6 +838,16 @@
{
externalURL = new URL(url);
httpURLConn = (HttpURLConnection) externalURL.openConnection();
+
+ // Check if proxy is being configured by system properties.
+ if (SecurityUtility.getSystemProperty("http.proxyHost") != null)
+ {
+ String proxyAuth = getProxyAuth(metadata);
+ if (proxyAuth != null)
+ {
+ httpURLConn.setRequestProperty("Proxy-Authorization",
proxyAuth);
+ }
+ }
}
return httpURLConn;
Show replies by thread