mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix plus test for unicode characters in custom query name, closes #558
This commit is contained in:
parent
5ed450a332
commit
90d4f497f9
3 changed files with 25 additions and 16 deletions
|
|
@ -45,9 +45,10 @@ class Request:
|
|||
|
||||
@property
|
||||
def path(self):
|
||||
return (
|
||||
self.scope.get("raw_path", self.scope["path"].encode("latin-1"))
|
||||
).decode("latin-1")
|
||||
if "raw_path" in self.scope:
|
||||
return self.scope["raw_path"].decode("latin-1")
|
||||
else:
|
||||
return self.scope["path"].decode("utf-8")
|
||||
|
||||
@property
|
||||
def query_string(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue