mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
fix Python 3.6 compatibility
This commit is contained in:
parent
67885320c0
commit
fc94bbdabc
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class ASGIApp:
|
|||
assert flow.reply
|
||||
if (flow.request.pretty_host, flow.request.port) == (self.host, self.port) and not flow.reply.has_message:
|
||||
flow.reply.take() # pause hook completion
|
||||
asyncio.create_task(serve(self.asgi_app, flow))
|
||||
asyncio.ensure_future(serve(self.asgi_app, flow))
|
||||
|
||||
|
||||
class WSGIApp(ASGIApp):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue