Merge pull request #2 from ThaUnknown/patch-2

This commit is contained in:
Dennis Rönn 2021-10-12 21:15:52 +02:00 committed by GitHub
commit f5a7820e44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,6 +332,8 @@ def download_torrent(torrent_id):
resp.headers['Content-Type'] = 'application/x-bittorrent' resp.headers['Content-Type'] = 'application/x-bittorrent'
resp.headers['Content-Disposition'] = disposition resp.headers['Content-Disposition'] = disposition
resp.headers['Content-Length'] = torrent_file_size resp.headers['Content-Length'] = torrent_file_size
# Allow cross origin access
resp.headers['Access-Control-Allow-Origin'] = '*'
return resp return resp