From 037e46cae62c670aa029bb5170365d4d69d80d03 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Feb 2021 13:43:06 +0000 Subject: [PATCH] Include path in debug --- daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index b93cfd613..97d5384f2 100644 --- a/daemon.py +++ b/daemon.py @@ -12316,7 +12316,8 @@ class PubServer(BaseHTTPRequestHandler): if ' boundary=' in headers['Content-Type']: if self.server.debug: print('DEBUG: receiving POST headers ' + - headers['Content-Type']) + headers['Content-Type'] + + ' path ' + path) nickname = None nicknameStr = path.split('/users/')[1] if '?' in nicknameStr: @@ -12325,12 +12326,12 @@ class PubServer(BaseHTTPRequestHandler): nickname = nicknameStr.split('/')[0] else: nickname = nicknameStr + if self.server.debug: + print('DEBUG: POST nickname ' + str(nickname)) if not nickname: print('WARN: no nickname found when receiving ' + postType + ' path ' + path) return -1 - if self.server.debug: - print('DEBUG: POST nickname ' + nickname) length = int(headers['Content-Length']) if length > self.server.maxPostLength: print('POST size too large')