Skip to content

Commit

Permalink
Do not use translated path
Browse files Browse the repository at this point in the history
Redirect would fail in case we have encoded url, e.g.
/foo/bar%2Fbar -> /foo/bar/bar/
  • Loading branch information
william-gr committed Jun 4, 2018
1 parent 466cb4a commit 1e4914a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/web_middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def impl(request, handler):
resolves, request = await _check_request_resolves(
request, path)
if resolves:
raise redirect_class(request.path + query)
raise redirect_class(path + query)

return await handler(request)

Expand Down

0 comments on commit 1e4914a

Please sign in to comment.