mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
Merge pull request #3765 from jsayol/patch-1
Allow adding torrent link from Torcache
This commit is contained in:
commit
b4680e82b7
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ DownloadHandler *DownloadManager::downloadUrl(const QString &url, bool saveToFil
|
|||
// Spoof Firefox 38 user agent to avoid web server banning
|
||||
request.setRawHeader("User-Agent", "Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0");
|
||||
|
||||
// Spoof HTTP Referer to allow adding torrent link from Torcache/KickAssTorrents
|
||||
request.setRawHeader("Referer", request.url().toEncoded().data());
|
||||
|
||||
qDebug("Downloading %s...", request.url().toEncoded().data());
|
||||
// accept gzip
|
||||
request.setRawHeader("Accept-Encoding", "gzip");
|
||||
|
|
Loading…
Reference in a new issue