Get nickname from POST

main
Bob Mottram 2021-02-17 11:16:32 +00:00
parent 13251684aa
commit 2458915cf8
1 changed files with 2 additions and 0 deletions

View File

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