changeset 17836:98347af64593

httpclient: fix calling convention violation
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Oct 2012 23:55:15 -0500
parents 08d11b82d9fc
children b623e323c561
files mercurial/httpconnection.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httpconnection.py	Mon Oct 08 23:49:36 2012 +0900
+++ b/mercurial/httpconnection.py	Thu Oct 18 23:55:15 2012 -0500
@@ -234,7 +234,9 @@
         if req.get_full_url().startswith('https'):
             return self.https_open(req)
         def makehttpcon(*args, **kwargs):
-            return HTTPConnection(*args, use_ssl=False, **kwargs)
+            k2 = dict(kwargs)
+            k2['use_ssl'] = False
+            return HTTPConnection(*args, **k2)
         return self.do_open(makehttpcon, req, False)
 
     def https_open(self, req):