mirror of https://gitlab.com/bashrc2/epicyon
Include path in debug
parent
d1b2fe7bf0
commit
037e46cae6
|
@ -12316,7 +12316,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if ' boundary=' in headers['Content-Type']:
|
if ' boundary=' in headers['Content-Type']:
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: receiving POST headers ' +
|
print('DEBUG: receiving POST headers ' +
|
||||||
headers['Content-Type'])
|
headers['Content-Type'] +
|
||||||
|
' path ' + path)
|
||||||
nickname = None
|
nickname = None
|
||||||
nicknameStr = path.split('/users/')[1]
|
nicknameStr = path.split('/users/')[1]
|
||||||
if '?' in nicknameStr:
|
if '?' in nicknameStr:
|
||||||
|
@ -12325,12 +12326,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
nickname = nicknameStr.split('/')[0]
|
nickname = nicknameStr.split('/')[0]
|
||||||
else:
|
else:
|
||||||
nickname = nicknameStr
|
nickname = nicknameStr
|
||||||
|
if self.server.debug:
|
||||||
|
print('DEBUG: POST nickname ' + str(nickname))
|
||||||
if not nickname:
|
if not nickname:
|
||||||
print('WARN: no nickname found when receiving ' + postType +
|
print('WARN: no nickname found when receiving ' + postType +
|
||||||
' path ' + path)
|
' path ' + path)
|
||||||
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