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

@ -218,6 +218,7 @@ class TrackFileViewSet(viewsets.ReadOnlyModelViewSet):
library_track.audio_url,
auth=auth,
stream=True,
timeout=20,
headers={
'Content-Type': 'application/activity+json'
})