mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
6e091b14b6
commit
896cc2c6ac
2 changed files with 10 additions and 18 deletions
|
|
@ -1,8 +0,0 @@
|
|||
class MockRequest:
|
||||
def __init__(self, url):
|
||||
self.url = url
|
||||
self.path = "/" + url.split("://")[1].split("/", 1)[1]
|
||||
self.query_string = ""
|
||||
if "?" in url:
|
||||
self.query_string = url.split("?", 1)[1]
|
||||
self.path = self.path.split("?")[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue