D3372: keepalive: add ** overlooked in 83250442dc81
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Apr 14 14:43:31 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Caught by Yuya in https://phab.mercurial-scm.org/D3326.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3372
AFFECTED FILES
mercurial/keepalive.py
CHANGE DETAILS
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():
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list