Set User-Agent to contain Mozilla/5.0 string

A blatant lie for a blatant abuse of Firewall filters.
This commit is contained in:
Daniel Molkentin 2013-05-28 15:44:41 +02:00
parent f38d8ba2e4
commit dd2859880b

View file

@ -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;