mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Set User-Agent to contain Mozilla/5.0 string
A blatant lie for a blatant abuse of Firewall filters.
This commit is contained in:
parent
f38d8ba2e4
commit
dd2859880b
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ void ownCloudInfo::setupHeaders( QNetworkRequest & req, quint64 size )
|
|||
QUrl url( cfgFile.ownCloudUrl( QString::null, false ) );
|
||||
qDebug() << "Setting up host header: " << url.host();
|
||||
req.setRawHeader( QByteArray("Host"), url.host().toUtf8() );
|
||||
req.setRawHeader( QByteArray("User-Agent"), QString::fromLatin1("mirall-%1")
|
||||
req.setRawHeader( QByteArray("User-Agent"), QString::fromLatin1("Mozilla/5.0 (compatible; mirall-%1)")
|
||||
.arg(QLatin1String(MIRALL_STRINGIFY(MIRALL_VERSION))).toAscii());
|
||||
|
||||
QString con = _configHandle;
|
||||
|
|
Loading…
Reference in a new issue