From d99cd5eb739c5086e8f043347ff80b861c4d78b8 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Fri, 3 Jul 2026 12:34:36 +0200 Subject: [PATCH] Added max http request size and limited redirect protocols to http/https. --- src/core/http_queue.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/http_queue.cc b/src/core/http_queue.cc index 80a0b0d9..42a7516f 100644 --- a/src/core/http_queue.cc +++ b/src/core/http_queue.cc @@ -12,6 +12,9 @@ HttpQueue::iterator HttpQueue::insert(const std::string& url, std::shared_ptr stream) { auto itr = base_type::insert(end(), torrent::net::HttpGet(url, stream)); + itr->set_max_file_size(15 << 20); + itr->set_redirect_only_http_https(); + for (auto& slot : m_signal_insert) slot(*itr);