Skip to content

Commit

Permalink
Update QRZ.cpp
Browse files Browse the repository at this point in the history
Added user-agent to try and resolve potential throttling by QRZ - issue 559
  • Loading branch information
aa5sh committed Dec 31, 2024
1 parent 94e55cd commit d3567ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/QRZ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ void QRZ::actionInsert(QByteArray& data, const QString &insertPolicy)

QNetworkRequest request(url);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
QString rheader = QString("QLog/version %1 <OK1MLG>").arg(VERSION);

request.setRawHeader("User-Agent",rheader.toUtf8() );
qCDebug(runtime) << url;

if ( currentReply )
Expand Down

0 comments on commit d3567ac

Please sign in to comment.