mirror of https://gitlab.com/bashrc2/epicyon
Post with user agent
parent
1fa7d63411
commit
b4a64a46aa
|
@ -388,7 +388,7 @@ def post_json(http_prefix: str, domain_full: str,
|
||||||
post_result = \
|
post_result = \
|
||||||
session.post(url=inbox_url,
|
session.post(url=inbox_url,
|
||||||
data=json.dumps(post_json_object),
|
data=json.dumps(post_json_object),
|
||||||
headers=headers, timeout=timeout_sec)
|
headers=session_headers, timeout=timeout_sec)
|
||||||
except requests.Timeout as ex:
|
except requests.Timeout as ex:
|
||||||
if not quiet:
|
if not quiet:
|
||||||
print('EX: post_json timeout ' + inbox_url + ' ' +
|
print('EX: post_json timeout ' + inbox_url + ' ' +
|
||||||
|
|
Loading…
Reference in New Issue