bugzilla: stop XMLRPC requests from requesting gzipped responses stable
authorJim Hague <jim.hague@acm.org>
Wed, 29 Feb 2012 17:43:03 +0000
branchstable
changeset 16193 b468cea3f29d
parent 16191 7c75924a6926
child 16194 6ba530122d8b
bugzilla: stop XMLRPC requests from requesting gzipped responses Python 2.7 introduced support for gzip encoding in xmlrpclib.Transport. We do our own handling of responses, and don't currently support gzip encoding. So to run successfully under Python 2.7 with a web server configured to gzip encode, stop XMLRPC requests from announcing gzip encoding support.
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Tue Feb 28 23:47:46 2012 +0200
+++ b/hgext/bugzilla.py	Wed Feb 29 17:43:03 2012 +0000
@@ -497,6 +497,7 @@
 
     def request(self, host, handler, request_body, verbose=0):
         self.verbose = verbose
+        self.accept_gzip_encoding = False
 
         # issue XML-RPC request
         h = self.make_connection(host)