Ensure timeout in requests

This commit is contained in:
Eliot Berriot 2018-04-08 13:33:36 +02:00
parent b8c7e960c3
commit 206ae296b6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 5 additions and 1 deletions

View file

@ -73,6 +73,7 @@ def deliver(activity, on_behalf_of, to=[]):
auth=auth,
json=activity,
url=recipient_actor.inbox_url,
timeout=5,
headers={
'Content-Type': 'application/activity+json'
}