Skip to content
Snippets Groups Projects
Commit a50f33f1ff24 authored by Matt Harbison's avatar Matt Harbison
Browse files

url: fix a bytes vs str crash in processing proxy headers (issue6249)

I have no idea how to make a test for this, so if somebody knows, feel free to
add one or follow up on this.  The bug reporter reported that it worked for
them, so there may not be other hidden issues here.

Differential Revision: https://phab.mercurial-scm.org/D8485
parent 3d5fb6cab832
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@
def _generic_proxytunnel(self):
proxyheaders = {
x: self.headers[x]
pycompat.bytestr(x): pycompat.bytestr(self.headers[x])
for x in self.headers
if x.lower().startswith('proxy-')
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment