Skip to content

Commit badd4ce

Browse files
committed
Fix regression in static file handling #377, make 0.16.1 release
1 parent 296e38c commit badd4ce

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGES
22
=======
33

4+
0.16.1 (05-27-2015)
5+
-------------------
6+
7+
- Fix regression in static file handling #377
8+
49
0.16.0 (05-26-2015)
510
-------------------
611

aiohttp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This relies on each of the submodules having an __all__ variable.
22

3-
__version__ = '0.16.0'
3+
__version__ = '0.16.1'
44

55

66
from . import hdrs # noqa

aiohttp/web_urldispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def handle(self, request):
194194
else:
195195
while chunk:
196196
resp.write(chunk)
197-
chunk = f.read(self.limit)
197+
chunk = f.read(self._chunk_size)
198198

199199
return resp
200200

tests/test_web_functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def go(dirname, filename):
267267
app, _, url = yield from self.create_server(
268268
'GET', '/static/' + filename
269269
)
270-
app.router.add_static('/static', dirname, chunk_size=16)
270+
app.router.add_static('/static', dirname)
271271

272272
resp = yield from request('GET', url, loop=self.loop)
273273
self.assertEqual(200, resp.status)
@@ -297,7 +297,7 @@ def go(dirname, filename):
297297
app, _, url = yield from self.create_server(
298298
'GET', '/static/' + filename
299299
)
300-
app.router.add_static('/static', dirname)
300+
app.router.add_static('/static', dirname, chunk_size=16)
301301

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

0 commit comments

Comments
 (0)