Update server.py
This commit is contained in:
parent
85458b0db2
commit
a459583d16
1 changed files with 5 additions and 0 deletions
|
@ -205,6 +205,11 @@ def relay():
|
|||
isabs = goto[0] == "/" or goto[0:2] == "//"
|
||||
isquery = goto[0] == "?"
|
||||
dubleslash = goto[0:2] == "//"
|
||||
if url = urlparse(fulladdr).hostname:
|
||||
isquery=False
|
||||
isabs=False
|
||||
isdir=True
|
||||
goto = f"/{goto}" if goto[0] != / else goto
|
||||
if isquery:
|
||||
tempurl = url
|
||||
qury = goto[1:]
|
||||
|
|
Loading…
Add table
Reference in a new issue