mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
25b7e1f577
commit
0ef5f670c2
|
@ -1578,11 +1578,13 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
|
|||
# 0=this is not a new post
|
||||
# 1=new post success
|
||||
# -1=new post failed
|
||||
# 2=new post canceled
|
||||
# 2=new post cancelled
|
||||
if debug:
|
||||
print('DEBUG: receiving POST')
|
||||
|
||||
if ' boundary=' in headers['Content-Type']:
|
||||
if ' boundary=' not in headers['Content-Type']:
|
||||
return -1
|
||||
|
||||
if debug:
|
||||
print('DEBUG: receiving POST headers ' +
|
||||
headers['Content-Type'] +
|
||||
|
|
Loading…
Reference in New Issue