changeset 16193:b468cea3f29d stable

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.
author Jim Hague <jim.hague@acm.org>
date Wed, 29 Feb 2012 17:43:03 +0000
parents 7c75924a6926
children 6ba530122d8b
files hgext/bugzilla.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)