# HG changeset patch # User Augie Fackler # Date 2018-04-14 01:07:18 # Node ID 6cb7e3b9188348cb13440d210244d91cb76cdfd2 # Parent e10b695b9c41633f860f05886a4fb4de967a710b httppeer: no matter what Python 3 might think, http headers are bytes Differential Revision: https://phab.mercurial-scm.org/D3346 diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -278,6 +278,8 @@ def sendrequest(ui, opener, req): hgargssize = None for header, value in sorted(req.header_items()): + header = pycompat.bytesurl(header) + value = pycompat.bytesurl(value) if header.startswith('X-hgarg-'): if hgargssize is None: hgargssize = 0