mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 23:43:48 +02:00
Fix a crash in some cases
This commit is contained in:
parent
ed656b7ab2
commit
823288dd0b
@ -46,7 +46,8 @@ class Response(aiohttp.web.Response):
|
|||||||
|
|
||||||
def enable_chunked_encoding(self):
|
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)
|
||||||
self.content_length = None
|
if self.content_length:
|
||||||
|
self.content_length = None
|
||||||
super().enable_chunked_encoding()
|
super().enable_chunked_encoding()
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user