# HG changeset patch # User Augie Fackler # Date 1523668038 14400 # 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 -r e10b695b9c41 -r 6cb7e3b91883 mercurial/httppeer.py --- a/mercurial/httppeer.py Fri Apr 13 21:06:50 2018 -0400 +++ b/mercurial/httppeer.py Fri Apr 13 21:07:18 2018 -0400 @@ -278,6 +278,8 @@ 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