mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01: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:
parent
dc1bbb1c15
commit
244abda445
|
@ -29,7 +29,6 @@ UserAgentManager::UserAgentManager(QObject* parent)
|
||||||
, m_usePerDomainUserAgent(false)
|
, m_usePerDomainUserAgent(false)
|
||||||
{
|
{
|
||||||
m_defaultUserAgent = mApp->webProfile()->httpUserAgent();
|
m_defaultUserAgent = mApp->webProfile()->httpUserAgent();
|
||||||
m_defaultUserAgent.replace(QRegularExpression(QSL("(QtWebEngine/[^\\s]+)")), QSL("Falkon/%1 \\1").arg(QString::fromLatin1(Qz::VERSION)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserAgentManager::loadSettings()
|
void UserAgentManager::loadSettings()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user