Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG6cb7e3b91883: httppeer: no matter what Python 3 might think, http headers are bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/httppeer.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
and ui.configbool('devel', 'debug.peer-request')): | and ui.configbool('devel', 'debug.peer-request')): | ||||
dbg = ui.debug | dbg = ui.debug | ||||
line = 'devel-peer-request: %s\n' | line = 'devel-peer-request: %s\n' | ||||
dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()), | dbg(line % '%s %s' % (pycompat.bytesurl(req.get_method()), | ||||
pycompat.bytesurl(req.get_full_url()))) | pycompat.bytesurl(req.get_full_url()))) | ||||
hgargssize = None | hgargssize = None | ||||
for header, value in sorted(req.header_items()): | for header, value in sorted(req.header_items()): | ||||
header = pycompat.bytesurl(header) | |||||
value = pycompat.bytesurl(value) | |||||
if header.startswith('X-hgarg-'): | if header.startswith('X-hgarg-'): | ||||
if hgargssize is None: | if hgargssize is None: | ||||
hgargssize = 0 | hgargssize = 0 | ||||
hgargssize += len(value) | hgargssize += len(value) | ||||
else: | else: | ||||
dbg(line % ' %s %s' % (header, value)) | dbg(line % ' %s %s' % (header, value)) | ||||
if hgargssize is not None: | if hgargssize is not None: |