Skip to content

Commit 9fbfbd1

Browse files
committed
fix http api
1 parent 7562c10 commit 9fbfbd1

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
@@ -296,7 +296,7 @@ async def reply(code, message, body=None, wait=False):
296296
if wait:
297297
await writer.drain()
298298
return await self.http_accept(user, method, path, None, ver, lines, headers.get('Host', ''), headers.get('Proxy-Authorization'), reply, **kw)
299-
async def http_accept(self, user, method, path, authority, ver, lines, host, pauth, reply, authtable, users, httpget, **kw):
299+
async def http_accept(self, user, method, path, authority, ver, lines, host, pauth, reply, authtable, users, httpget=None, **kw):
300300
url = urllib.parse.urlparse(path)
301301
if method == 'GET' and not url.hostname:
302302
for path, text in (httpget.items() if httpget else ()):

0 commit comments

Comments
 (0)