mirror of https://gitlab.com/bashrc2/epicyon
Show code
parent
4bd90ca3a4
commit
f0c61e9b3d
|
@ -103,7 +103,7 @@ def postJsonString(session,postJsonStr: str, \
|
|||
# return True
|
||||
if postResult.status_code>=400 and postResult.status_code<=405 and \
|
||||
postResult.status_code!=404:
|
||||
print('WARN: >>> Post to '+inboxUrl+' is unauthorized <<<')
|
||||
print('WARN: >>> Post to '+inboxUrl+' is unauthorized. Code '+str(postResult.status_code)+' <<<')
|
||||
return False,True
|
||||
else:
|
||||
print('WARN: Failed to post to '+inboxUrl+' with headers '+str(headers))
|
||||
|
|
Loading…
Reference in New Issue