mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
Added max http request size and limited redirect protocols to http/https.
This commit is contained in:
@@ -12,6 +12,9 @@ HttpQueue::iterator
|
|||||||
HttpQueue::insert(const std::string& url, std::shared_ptr<std::ostream> stream) {
|
HttpQueue::insert(const std::string& url, std::shared_ptr<std::ostream> stream) {
|
||||||
auto itr = base_type::insert(end(), torrent::net::HttpGet(url, 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)
|
for (auto& slot : m_signal_insert)
|
||||||
slot(*itr);
|
slot(*itr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user