mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Symbols are returned with a content length
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -120,7 +120,7 @@ class Response(aiohttp.web.Response):
|
||||
|
||||
st = os.stat(path)
|
||||
self.last_modified = st.st_mtime
|
||||
self.enable_chunked_encoding()
|
||||
self.headers[aiohttp.hdrs.CONTENT_LENGTH] = str(st.st_size)
|
||||
|
||||
with open(path, 'rb') as fobj:
|
||||
yield from self.prepare(self._request)
|
||||
|
||||
Reference in new issue
Block a user