1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

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 <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-07-08 20:31:08 +02:00
parent dc1bbb1c15
commit 244abda445
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -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()