Fix errors when enabling chunking

pull/1055/head
Julien Duponchelle 7 years ago
parent 7044c8c9ff
commit 4f6cca0019
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -44,9 +44,9 @@ class Response(aiohttp.web.Response):
headers['Server'] = "Python/{0[0]}.{0[1]} GNS3/{1}".format(sys.version_info, __version__)
super().__init__(headers=headers, **kwargs)
def enable_chunked_encoding():
def enable_chunked_encoding(self):
# Very important: do not send a content length otherwise QT closes the connection (curl can consume the feed)
response.content_length = None
self.content_length = None
super().enable_chunked_encoding()
@asyncio.coroutine

Loading…
Cancel
Save