Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify code
  • Loading branch information
elpaso authored and nyalldawson committed Dec 7, 2021
1 parent 91f174a commit 86d036e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/qgsaction.cpp
Expand Up @@ -92,8 +92,6 @@ void QgsAction::run( const QgsExpressionContext &expressionContext ) const
else if ( mType == QgsAction::SubmitUrl || mType == QgsAction::SubmitUrlMultipart )
{

const bool isMultiPart { mType == QgsAction::SubmitUrlMultipart };

QUrl url{ command() };
const QUrlQuery queryString { url.query( QUrl::ComponentFormattingOption::FullyDecoded ) };
// Remove query
Expand Down Expand Up @@ -201,7 +199,7 @@ void QgsAction::run( const QgsExpressionContext &expressionContext ) const
// guess content type

// check for json
if ( ! isMultiPart )
if ( mType != QgsAction::SubmitUrlMultipart )
{
QString contentType { QStringLiteral( "application/x-www-form-urlencoded" ) };
QJsonParseError jsonError;
Expand Down

0 comments on commit 86d036e

Please sign in to comment.