Update server.py
This commit is contained in:
parent
5220611d5c
commit
97b9a37add
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ def relay():
|
|||
isabs = goto[0] == "/" or goto[0:2] == "//"
|
||||
dubleslash = goto[0:2] == "//"
|
||||
if isabs:
|
||||
tempurl = urlparse(fulladdr).hostname + "/" + (goto[1:] if dubleslash else goto)
|
||||
tempurl = urlparse(fulladdr).hostname + (goto[1:] if dubleslash else goto)
|
||||
elif isdir:
|
||||
tempurl = url + goto
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue