Skip to content

Commit

Permalink
fix http api
Browse files Browse the repository at this point in the history
  • Loading branch information
qwj committed Feb 23, 2021
1 parent 7562c10 commit 9fbfbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pproxy/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ async def reply(code, message, body=None, wait=False):
if wait:
await writer.drain()
return await self.http_accept(user, method, path, None, ver, lines, headers.get('Host', ''), headers.get('Proxy-Authorization'), reply, **kw)
async def http_accept(self, user, method, path, authority, ver, lines, host, pauth, reply, authtable, users, httpget, **kw):
async def http_accept(self, user, method, path, authority, ver, lines, host, pauth, reply, authtable, users, httpget=None, **kw):
url = urllib.parse.urlparse(path)
if method == 'GET' and not url.hostname:
for path, text in (httpget.items() if httpget else ()):
Expand Down

0 comments on commit 9fbfbd1

Please sign in to comment.