Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.6.3
- Revert change introduced in v1.6.2 now that Starlette has been updated to
always include `root_path` in `path`.

# 1.6.2
- Fix `MAuthASGIMiddleware` signature validation when the full URL path is split
between `root_path` and `path` in the request scope.
Expand Down
3 changes: 1 addition & 2 deletions mauth_client/middlewares/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ async def __call__(
if scope["type"] != "http" or path in self.exempt:
return await self.app(scope, receive, send)

root_path = scope["root_path"]
query_string = scope["query_string"]
url = f"{root_path}{path}?{decode(query_string)}" if query_string else f"{root_path}{path}"
url = f"{path}?{decode(query_string)}" if query_string else path
headers = {decode(k): decode(v) for k, v in scope["headers"]}

events, body = await self._get_body(receive)
Expand Down
Loading