From da26adfc73d0ef740d4af04007e8ae9a04a49fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Fri, 20 Mar 2020 17:26:47 +0200 Subject: [PATCH] Initialise StreamingHTTPResponse.protocol = None --- sanic/response.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sanic/response.py b/sanic/response.py index 9e1a4437..7b7c8521 100644 --- a/sanic/response.py +++ b/sanic/response.py @@ -91,6 +91,7 @@ class StreamingHTTPResponse(BaseHTTPResponse): self.headers = Header(headers or {}) self.chunked = chunked self._cookies = None + self.protocol = None async def write(self, data): """Writes a chunk of data to the streaming response.