forked from indymedia/epicyon
debug
parent
06ef125e89
commit
2d53a75972
|
@ -3389,6 +3389,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: receiving POST')
|
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 ' boundary=' in headers['Content-Type']:
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: receiving POST headers '+headers['Content-Type'])
|
print('DEBUG: receiving POST headers '+headers['Content-Type'])
|
||||||
|
@ -3450,6 +3455,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
os.rename(filename,filename.replace('.temp',''))
|
os.rename(filename,filename.replace('.temp',''))
|
||||||
|
|
||||||
fields=extractTextFieldsInPOST(postBytes,boundary,self.server.debug)
|
fields=extractTextFieldsInPOST(postBytes,boundary,self.server.debug)
|
||||||
|
#debug
|
||||||
|
if postType=='newquestion':
|
||||||
|
print("QUESTION: fields "str(fields))
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
if fields:
|
if fields:
|
||||||
print('DEBUG: text field extracted from POST '+str(fields))
|
print('DEBUG: text field extracted from POST '+str(fields))
|
||||||
|
|
Loading…
Reference in New Issue