Symbols are returned with a content length

This commit is contained in:
Julien Duponchelle committed 2017-05-18 16:37:44 +02:00
1 parent a4245fcf44
commit 189ad994c8
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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)