url: fix https client authentication through proxy stable
authorMads Kiilerich <mads@kiilerich.com>
Mon, 01 Nov 2010 01:56:12 +0100
branchstable
changeset 12906 ae163a0a3cd0
parent 12905 593ee3a2a098
child 12907 e255a5dc29e6
url: fix https client authentication through proxy There is no tests for this, but the parameter order was obviously wrong.
mercurial/url.py
--- a/mercurial/url.py	Mon Nov 01 12:45:45 2010 -0500
+++ b/mercurial/url.py	Mon Nov 01 01:56:12 2010 +0100
@@ -540,8 +540,8 @@
                 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                 self.sock.connect((self.host, self.port))
                 if _generic_proxytunnel(self):
-                    self.sock = _ssl_wrap_socket(self.sock, self.cert_file,
-                                                 self.key_file)
+                    self.sock = _ssl_wrap_socket(self.sock, self.key_file,
+                            self.cert_file)
             else:
                 BetterHTTPS.connect(self)