Skip to content
Permalink
Browse files
Add OS info to user agent
  • Loading branch information
elpaso authored and jef-n committed Nov 17, 2021
1 parent 5cd7625 commit dddc9c5ef4fea6d188c376c5adc1d6b8705cb259
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/network/qgsnetworkaccessmanager.cpp
@@ -306,7 +306,7 @@ QNetworkReply *QgsNetworkAccessManager::createRequest( QNetworkAccessManager::Op
QString userAgent = s.value( QStringLiteral( "/qgis/networkAndProxy/userAgent" ), "Mozilla/5.0" ).toString();
if ( !userAgent.isEmpty() )
userAgent += ' ';
userAgent += QStringLiteral( "QGIS/%1" ).arg( Qgis::versionInt() );
userAgent += QStringLiteral( "QGIS/%1/%2" ).arg( Qgis::versionInt() ).arg( QSysInfo::prettyProductName() );
pReq->setRawHeader( "User-Agent", userAgent.toLatin1() );

#ifndef QT_NO_SSL

0 comments on commit dddc9c5

Please sign in to comment.