mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-12-23 04:35:45 +02:00
Merge pull request #2 from ThaUnknown/patch-2
This commit is contained in:
commit
f5a7820e44
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue