Skip to content

Commit

Permalink
Merge pull request #1854 from Anvil/fix-middleware-order
Browse files Browse the repository at this point in the history
aiohttp/web.py: fixing middleware resolution order accross multiple applications
  • Loading branch information
fafhrd91 authored May 12, 2017
2 parents 9df6430 + a9b8cf7 commit 29be8ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Changes

- Do not unquote `+` in match_info values #1816

- Fix sub-application middlewares resolution order #1853


2.0.7 (2017-04-12)
------------------
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

Contributors
------------
A. Jesse Jiryu Davis
Adam Mills
Expand Down Expand Up @@ -42,7 +42,7 @@ Chris AtLee
Chris Laws
Chris Moore
Christopher Schmitt
Contributors
Damien Nadé
Daniel García
Daniel Nelson
Danny Song
Expand Down Expand Up @@ -175,4 +175,4 @@ Yuriy Shatrov
Yury Selivanov
Yusuke Tsutsumi
Марк Коренберг
Семён Марьясин
Семён Марьясин
2 changes: 1 addition & 1 deletion aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _handle(self, request):

if resp is None:
handler = match_info.handler
for app in match_info.apps:
for app in match_info.apps[::-1]:
for factory in app._middlewares:
handler = yield from factory(app, handler)

Expand Down

0 comments on commit 29be8ac

Please sign in to comment.