Skip to content

Commit

Permalink
Include ASGI scope root_path in url to validate
Browse files Browse the repository at this point in the history
  • Loading branch information
pburke-mdsol committed Oct 27, 2023
1 parent a6e8330 commit d8a241e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mauth_client/middlewares/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ 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"{path}?{decode(query_string)}" if query_string else path
url = f"{root_path}{path}?{decode(query_string)}" if query_string else f"{root_path}{path}"
headers = {decode(k): decode(v) for k, v in scope["headers"]}

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

0 comments on commit d8a241e

Please sign in to comment.