diff --git a/daemon.py b/daemon.py index 19ede1aac..27a4f654f 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))