[Inteproxy-commits] r127 - in trunk: . inteproxy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 16 12:23:36 CEST 2008


Author: bernhard
Date: 2008-05-16 12:23:36 +0200 (Fri, 16 May 2008)
New Revision: 127

Modified:
   trunk/ChangeLog
   trunk/inteproxy/proxycore.py
Log:
* inteproxy/proxycore.py(handle_proxy_request()): Adding the 
urllib2.ProxyHandler to the used Handlers for the HTTP 1.0 case.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-05-15 00:25:09 UTC (rev 126)
+++ trunk/ChangeLog	2008-05-16 10:23:36 UTC (rev 127)
@@ -1,3 +1,8 @@
+2008-05-16  Bernhard Reiter  <bernhard at intevation.de>
+
+	* inteproxy/proxycore.py(handle_proxy_request()): Adding the 
+	urllib2.ProxyHandler to the used Handlers for the HTTP 1.0 case.
+
 2008-05-15  Bernhard Reiter  <bernhard at intevation.de>
 
 	Changed behaviour: When asked as HTTP 1.0 by the client, we also

Modified: trunk/inteproxy/proxycore.py
===================================================================
--- trunk/inteproxy/proxycore.py	2008-05-15 00:25:09 UTC (rev 126)
+++ trunk/inteproxy/proxycore.py	2008-05-16 10:23:36 UTC (rev 127)
@@ -162,7 +162,8 @@
             if self.request_version == "HTTP/1.0":
                 self.log_debug("Trying my HTTP10HTTPSHandler.")
                 #FIXME: Do we need more handlers here? Maybe Referer?
-                opener = urllib2.build_opener(HTTP10HTTPSHandler)
+                opener = urllib2.build_opener(HTTP10HTTPSHandler,
+                                urllib2.ProxyHandler)
                 response = opener.open(request)
             else:
                 response = urllib2.urlopen(request)



More information about the Inteproxy-commits mailing list