From 244abda44527f727a8f9eaf67563ee22dea28efe Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Mon, 8 Jul 2024 20:31:08 +0200 Subject: [PATCH] Remove Falkon identification from UserAgent CloudFlare works properly only with QtWebEngine default user agent. Any modifications will cause it to break. Signed-off-by: Juraj Oravec --- src/lib/other/useragentmanager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/other/useragentmanager.cpp b/src/lib/other/useragentmanager.cpp index e394c8174..35078ef3f 100644 --- a/src/lib/other/useragentmanager.cpp +++ b/src/lib/other/useragentmanager.cpp @@ -29,7 +29,6 @@ UserAgentManager::UserAgentManager(QObject* parent) , m_usePerDomainUserAgent(false) { m_defaultUserAgent = mApp->webProfile()->httpUserAgent(); - m_defaultUserAgent.replace(QRegularExpression(QSL("(QtWebEngine/[^\\s]+)")), QSL("Falkon/%1 \\1").arg(QString::fromLatin1(Qz::VERSION))); } void UserAgentManager::loadSettings()