Skip to content

Commit 1912b35

Browse files
committed
h2 proto
1 parent ee1edff commit 1912b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pproxy/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async def reply(code, message, body=None, wait=False):
295295
writer.write(body)
296296
if wait:
297297
await writer.drain()
298-
return await self.http_accept(user, method, path, None, ver, lines, headers['Host'], headers.get('Proxy-Authorization'), reply, **kw)
298+
return await self.http_accept(user, method, path, None, ver, lines, headers.get('Host', ''), headers.get('Proxy-Authorization'), reply, **kw)
299299
async def http_accept(self, user, method, path, authority, ver, lines, host, pauth, reply, authtable, users, httpget, **kw):
300300
url = urllib.parse.urlparse(path)
301301
if method == 'GET' and not url.hostname:

0 commit comments

Comments
 (0)