Initialise StreamingHTTPResponse.protocol = None

This commit is contained in:
L. Kärkkäinen 2020-03-20 17:26:47 +02:00
parent 60b4efad67
commit da26adfc73

View File

@ -91,6 +91,7 @@ class StreamingHTTPResponse(BaseHTTPResponse):
self.headers = Header(headers or {}) self.headers = Header(headers or {})
self.chunked = chunked self.chunked = chunked
self._cookies = None self._cookies = None
self.protocol = None
async def write(self, data): async def write(self, data):
"""Writes a chunk of data to the streaming response. """Writes a chunk of data to the streaming response.