Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add part to multipart
  • Loading branch information
elpaso authored and nyalldawson committed Dec 7, 2021
1 parent 74bfaed commit 927471e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsaction.cpp
Expand Up @@ -123,9 +123,10 @@ void QgsAction::run( const QgsExpressionContext &expressionContext ) const
{
QHttpPart part;
part.setHeader( QNetworkRequest::ContentDispositionHeader,
QStringLiteral( "Content-Disposition: form-data; name=\"%1\"" )
QStringLiteral( "form-data; name=\"%1\"" )
.arg( QString( queryItem.first ).replace( '"', QStringLiteral( R"(\")" ) ) ) );
part.setBody( queryItem.second.toUtf8() );
multiPart->append( part );
}
reply = QgsNetworkAccessManager::instance()->post( req, multiPart );
multiPart->setParent( reply );
Expand Down

0 comments on commit 927471e

Please sign in to comment.