From 6e3e8a2e4c85044e452a589e8cca06826788a1fb Mon Sep 17 00:00:00 2001 From: ultrapre Date: Wed, 11 Dec 2024 23:47:41 +0800 Subject: [PATCH] fix for qt5 compilation --- plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp b/plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp index 8ddabef8b46be..86c64d959c004 100644 --- a/plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp +++ b/plugins/NebulaTextures/src/gui/NebulaTexturesDialog.cpp @@ -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 '=================' - 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());