mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Fix the GUI disconnect from the server
Fix https://github.com/GNS3/gns3-gui/issues/2084
This commit is contained in:
4 files changed
+5
-8
No files matched your search
@@ -44,6 +44,11 @@ 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():
|
||||
# Very important: do not send a content length otherwise QT closes the connection (curl can consume the feed)
|
||||
response.content_length = None
|
||||
super().enable_chunked_encoding()
|
||||
|
||||
@asyncio.coroutine
|
||||
def prepare(self, request):
|
||||
if log.getEffectiveLevel() == logging.DEBUG:
|
||||
|
||||
Reference in new issue
Block a user