From 2d53a75972719a93303ca04320cd30b2427a73db Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 12:27:11 +0000 Subject: [PATCH] debug --- daemon.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daemon.py b/daemon.py index 19ede1aa..27a4f654 100644 --- a/daemon.py +++ b/daemon.py @@ -3389,6 +3389,11 @@ class PubServer(BaseHTTPRequestHandler): if self.server.debug: print('DEBUG: receiving POST') + #debug + if postType=='newquestion': + print('QUESTION: headers '+headers['Content-Type']) + print('QUESTION: content-length '+headers['Content-Length']) + if ' boundary=' in headers['Content-Type']: if self.server.debug: print('DEBUG: receiving POST headers '+headers['Content-Type']) @@ -3450,6 +3455,9 @@ class PubServer(BaseHTTPRequestHandler): os.rename(filename,filename.replace('.temp','')) fields=extractTextFieldsInPOST(postBytes,boundary,self.server.debug) + #debug + if postType=='newquestion': + print("QUESTION: fields "str(fields)) if self.server.debug: if fields: print('DEBUG: text field extracted from POST '+str(fields))