Skip to content

Commit

Permalink
Add OS info to user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and jef-n committed Nov 17, 2021
1 parent 5cd7625 commit dddc9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/network/qgsnetworkaccessmanager.cpp
Expand Up @@ -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
Expand Down

0 comments on commit dddc9c5

Please sign in to comment.