mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Fix errors when enabling chunking
This commit is contained in:
parent
7044c8c9ff
commit
4f6cca0019
@ -44,9 +44,9 @@ class Response(aiohttp.web.Response):
|
|||||||
headers['Server'] = "Python/{0[0]}.{0[1]} GNS3/{1}".format(sys.version_info, __version__)
|
headers['Server'] = "Python/{0[0]}.{0[1]} GNS3/{1}".format(sys.version_info, __version__)
|
||||||
super().__init__(headers=headers, **kwargs)
|
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)
|
# 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()
|
super().enable_chunked_encoding()
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user