Skip to content

Commit

Permalink
fix for qt5 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrapre committed Dec 11, 2024
1 parent a28e4a2 commit 6e3e8a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,9 @@ void NebulaTexturesDialog::onLoginReply(QNetworkReply *reply)
boundary_key += QString::number(QRandomGenerator::global()->bounded(10)); // Generates a random digit (0-9)
}

// Format the boundary as '===============<random_number>=='
QString boundary1 = "'===============" + boundary_key + "==";
QByteArray boundary = boundary1.toUtf8();
QByteArray boundary = "===============" + boundary_key.toUtf8() + "==";


QString contentType = QString("multipart/form-data; boundary=%1").arg(boundary);
QString contentType = QString("multipart/form-data; boundary=\"") + QString::fromUtf8(boundary) +"\"";
// QNetworkRequest request;
request.setHeader(QNetworkRequest::ContentTypeHeader, contentType.toUtf8());

Expand Down

0 comments on commit 6e3e8a2

Please sign in to comment.