Update User-Agent

PR #20801.
This commit is contained in:
cayenne17 2024-05-10 20:47:55 +02:00 committed by Vladimir Golovnev (Glassez)
parent 58ba6f41f3
commit 64029e0493
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@
namespace namespace
{ {
// Disguise as Firefox to avoid web server banning // Disguise as Firefox to avoid web server banning
const char DEFAULT_USER_AGENT[] = "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"; const char DEFAULT_USER_AGENT[] = "Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0";
} }
class Net::DownloadManager::NetworkCookieJar final : public QNetworkCookieJar class Net::DownloadManager::NetworkCookieJar final : public QNetworkCookieJar

View file

@ -1,4 +1,4 @@
#VERSION: 1.43 #VERSION: 1.44
# Author: # Author:
# Christophe DUMEZ (chris@qbittorrent.org) # Christophe DUMEZ (chris@qbittorrent.org)
@ -40,7 +40,7 @@ import urllib.parse
import urllib.request import urllib.request
# Some sites blocks default python User-agent # Some sites blocks default python User-agent
user_agent = 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0' user_agent = 'Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0'
headers = {'User-Agent': user_agent} headers = {'User-Agent': user_agent}
# SOCKS5 Proxy support # SOCKS5 Proxy support
if "sock_proxy" in os.environ and len(os.environ["sock_proxy"].strip()) > 0: if "sock_proxy" in os.environ and len(os.environ["sock_proxy"].strip()) > 0: