Skip to content

Commit

Permalink
Fix regression in static file handling #377, make 0.16.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed May 27, 2015
1 parent 296e38c commit badd4ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGES
=======

0.16.1 (05-27-2015)
-------------------

- Fix regression in static file handling #377

0.16.0 (05-26-2015)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion aiohttp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This relies on each of the submodules having an __all__ variable.

__version__ = '0.16.0'
__version__ = '0.16.1'


from . import hdrs # noqa
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/web_urldispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def handle(self, request):
else:
while chunk:
resp.write(chunk)
chunk = f.read(self.limit)
chunk = f.read(self._chunk_size)

return resp

Expand Down
4 changes: 2 additions & 2 deletions tests/test_web_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def go(dirname, filename):
app, _, url = yield from self.create_server(
'GET', '/static/' + filename
)
app.router.add_static('/static', dirname, chunk_size=16)
app.router.add_static('/static', dirname)

resp = yield from request('GET', url, loop=self.loop)
self.assertEqual(200, resp.status)
Expand Down Expand Up @@ -297,7 +297,7 @@ def go(dirname, filename):
app, _, url = yield from self.create_server(
'GET', '/static/' + filename
)
app.router.add_static('/static', dirname)
app.router.add_static('/static', dirname, chunk_size=16)

resp = yield from request('GET', url, loop=self.loop)
self.assertEqual(200, resp.status)
Expand Down

0 comments on commit badd4ce

Please sign in to comment.