Patchwork D3372: keepalive: add ** overlooked in 83250442dc81

login
register
mail settings
Submitter phabricator
Date April 14, 2018, 10:26 p.m.
Message ID <b8de7a719af6e5f5255889743f71fbec@localhost.localdomain>
Download mbox | patch
Permalink /patch/31058/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2018, 10:26 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2177b499db6b: keepalive: add ** overlooked in 83250442dc81 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3372?vs=8276&id=8287

REVISION DETAIL
  https://phab.mercurial-scm.org/D3372

AFFECTED FILES
  mercurial/keepalive.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/keepalive.py b/mercurial/keepalive.py
--- a/mercurial/keepalive.py
+++ b/mercurial/keepalive.py
@@ -326,16 +326,16 @@ 
                 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')
                 if r'content-length' not in headers:
                     h.putheader(r'Content-length', r'%d' % len(data))
             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():