##// END OF EJS Templates
py3: convert HTTP request headers to str...
Gregory Szorc -
r39991:c421c22d default
parent child Browse files
Show More
@@ -3286,7 +3286,10 b' def debugwireproto(ui, repo, path=None, '
3286 line = line.lstrip()
3286 line = line.lstrip()
3287 m = re.match(b'^([a-zA-Z0-9_-]+): (.*)$', line)
3287 m = re.match(b'^([a-zA-Z0-9_-]+): (.*)$', line)
3288 if m:
3288 if m:
3289 headers[m.group(1)] = m.group(2)
3289 # Headers need to use native strings.
3290 key = pycompat.strurl(m.group(1))
3291 value = pycompat.strurl(m.group(2))
3292 headers[key] = value
3290 continue
3293 continue
3291
3294
3292 if line.startswith(b'BODYFILE '):
3295 if line.startswith(b'BODYFILE '):
General Comments 0
You need to be logged in to leave comments. Login now