From c7f2399ded8b305dca4f5b07789e5eb2675f4bee Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Sat, 6 Jul 2019 11:34:22 -0700 Subject: [PATCH] remove commented code --- sanic/asgi.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sanic/asgi.py b/sanic/asgi.py index 87cb36f8..26b88a8b 100644 --- a/sanic/asgi.py +++ b/sanic/asgi.py @@ -266,7 +266,6 @@ class ASGIApp: message = await self.transport.receive() chunk = message.get("body", b"") await self.request.stream.put(chunk) - # self.sanic_app.loop.create_task(self.request.stream.put(chunk)) more_body = message.get("more_body", False) @@ -294,7 +293,6 @@ class ASGIApp: headers = [ (str(name).encode("latin-1"), str(value).encode("latin-1")) for name, value in response.headers.items() - # if name not in ("Set-Cookie",) ] except AttributeError: logger.error(