changeset 37688:e266e75d77dc

keepalive: add ** overlooked in 83250442dc81 Caught by Yuya in D3326. Differential Revision: https://phab.mercurial-scm.org/D3372
author Augie Fackler <augie@google.com>
date Sat, 14 Apr 2018 10:43:19 -0400
parents 8872d46643b6
children a7dbda94c86a
files mercurial/keepalive.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/keepalive.py	Sat Apr 14 17:27:32 2018 +0900
+++ b/mercurial/keepalive.py	Sat Apr 14 10:43:19 2018 -0400
@@ -326,7 +326,7 @@
                 data = urllibcompat.getdata(req)
                 h.putrequest(
                     req.get_method(), urllibcompat.getselector(req),
-                    skipheaders)
+                    **skipheaders)
                 if r'content-type' not in headers:
                     h.putheader(r'Content-type',
                                 r'application/x-www-form-urlencoded')
@@ -335,7 +335,7 @@
             else:
                 h.putrequest(
                     req.get_method(), urllibcompat.getselector(req),
-                    skipheaders)
+                    **skipheaders)
         except socket.error as err:
             raise urlerr.urlerror(err)
         for k, v in headers.items():