mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
[NetworkManager] Set Version string as user agent (#6411)
* [NetworkManager] Set Version string as user agent Took 13 minutes * Update in oracle. Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
da70344547
commit
a390c8ada7
9 changed files with 30 additions and 4 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <QJsonObject>
|
||||
#include <QMessageBox>
|
||||
#include <QNetworkReply>
|
||||
#include <version_string.h>
|
||||
|
||||
DlgLoadDeckFromWebsite::DlgLoadDeckFromWebsite(QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
|
|
@ -67,6 +68,7 @@ void DlgLoadDeckFromWebsite::accept()
|
|||
}
|
||||
|
||||
QNetworkRequest request(QUrl(info.fullUrl));
|
||||
request.setHeader(QNetworkRequest::UserAgentHeader, QString("Cockatrice %1").arg(VERSION_STRING));
|
||||
QNetworkReply *reply = nam->get(request);
|
||||
|
||||
QEventLoop loop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue