mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
17dc05c72b
commit
c9e5f0554f
|
@ -12320,11 +12320,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
nickname = None
|
nickname = None
|
||||||
nicknameStr = path.split('/users/')[1]
|
nicknameStr = path.split('/users/')[1]
|
||||||
if '?' in nicknameStr:
|
if '?' in nicknameStr:
|
||||||
nickname = nicknameStr.split('?')[0]
|
nicknameStr = nicknameStr.split('?')[0]
|
||||||
elif '/' in nicknameStr:
|
if '/' in nicknameStr:
|
||||||
nickname = nicknameStr.split('/')[0]
|
nickname = nicknameStr.split('/')[0]
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
|
if self.server.debug:
|
||||||
|
print('DEBUG: POST nickname ' + nickname)
|
||||||
length = int(headers['Content-Length'])
|
length = int(headers['Content-Length'])
|
||||||
if length > self.server.maxPostLength:
|
if length > self.server.maxPostLength:
|
||||||
print('POST size too large')
|
print('POST size too large')
|
||||||
|
|
Loading…
Reference in New Issue