Reverse sequence

main
Bob Mottram 2021-02-17 11:19:25 +00:00
parent 2458915cf8
commit 17dc05c72b
1 changed files with 3 additions and 3 deletions

View File

@ -12319,10 +12319,10 @@ class PubServer(BaseHTTPRequestHandler):
headers['Content-Type'])
nickname = None
nicknameStr = path.split('/users/')[1]
if '/' in nicknameStr:
nickname = nicknameStr.split('/')[0]
elif '?' in nicknameStr:
if '?' in nicknameStr:
nickname = nicknameStr.split('?')[0]
elif '/' in nicknameStr:
nickname = nicknameStr.split('/')[0]
else:
return -1
length = int(headers['Content-Length'])