[Inteproxy-commits] r348 - in branches/compression: . inteproxy

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 22 18:08:53 CET 2012


Author: aheinecke
Date: 2012-02-22 18:08:53 +0100 (Wed, 22 Feb 2012)
New Revision: 348

Modified:
   branches/compression/ChangeLog
   branches/compression/inteproxy/proxycore.py
Log:
Add Accept-Encoding headers to http requests


Modified: branches/compression/ChangeLog
===================================================================
--- branches/compression/ChangeLog	2012-02-22 17:06:21 UTC (rev 347)
+++ branches/compression/ChangeLog	2012-02-22 17:08:53 UTC (rev 348)
@@ -1,5 +1,10 @@
 2012-02-22	Andre Heinecke	<aheinecke at intevation.de>
 
+	* M inteproxy/proxycore.py:
+	  Add Accept-Encoding header to http_request
+
+2012-02-22	Andre Heinecke	<aheinecke at intevation.de>
+
 	* M inteproxy/httpmessage.py:
 	  Added support for decompressing HTTPMessages on read
 

Modified: branches/compression/inteproxy/proxycore.py
===================================================================
--- branches/compression/inteproxy/proxycore.py	2012-02-22 17:06:21 UTC (rev 347)
+++ branches/compression/inteproxy/proxycore.py	2012-02-22 17:08:53 UTC (rev 348)
@@ -222,6 +222,9 @@
 
         extra_headers = [("Host", "%s:%d" % remote_address)]
 
+        # Accept supported compression algorithms
+        extra_headers.append(("Accept-Encoding", "gzip, deflate"))
+
         sock = None
 
         if scheme == "http":



More information about the Inteproxy-commits mailing list