mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Strip querystring from path_from_header, refs #712
This commit is contained in:
parent
0f217b5e8d
commit
7b205af0b5
1 changed files with 1 additions and 1 deletions
|
|
@ -743,7 +743,7 @@ class DatasetteRouter(AsgiRouter):
|
|||
async def __call__(self, scope, receive, send):
|
||||
path_from_header = self.ds.config("path_from_header")
|
||||
if path_from_header:
|
||||
raw_path = dict(scope["headers"])[path_from_header.encode("utf8")]
|
||||
raw_path = dict(scope["headers"])[path_from_header.encode("utf8")].split(b"?")[0]
|
||||
scope = dict(scope, raw_path=raw_path)
|
||||
return await super().__call__(scope, receive, send)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue