Skip to content

Commit

Permalink
Send fritzing version as extra url parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern authored and KjellMorgenstern committed Dec 12, 2023
1 parent fc0a388 commit cc83955
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dialogs/fabuploadprogress.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#include "fabuploadprogress.h"
#include "networkhelper.h"

#include "../version/version.h"

#include <QTextStream>
#include <QUrl>
#include <QUrlQuery>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QHttpMultiPart>
Expand Down Expand Up @@ -58,6 +61,13 @@ void FabUploadProgress::doUpload()
return;
}
QUrl new_url("https://fritzing.org/fab/upload");

QString fritzingVersion = Version::versionString();

QUrlQuery query;
query.addQueryItem("fritzing_version", fritzingVersion);
new_url.setQuery(query);

QNetworkRequest request(new_url);
QNetworkReply *reply = mManager->get(request);
connect(reply, SIGNAL(finished()), this, SLOT(onRequestUploadFinished()));
Expand Down

0 comments on commit cc83955

Please sign in to comment.