Skip to content

Commit

Permalink
[server] Use request.data() instead of REQUEST_BODY parameter in post…
Browse files Browse the repository at this point in the history
… requests
  • Loading branch information
arnaud-morvan committed Mar 12, 2020
1 parent c2f2900 commit f9015c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsdescribefeaturetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace QgsWfs
QStringList typeNameList;
QDomDocument queryDoc;
QString errorMsg;
if ( queryDoc.setContent( parameters.value( QStringLiteral( "REQUEST_BODY" ) ), true, &errorMsg ) )
if ( queryDoc.setContent( request.data(), true, &errorMsg ) )
{
//read doc
QDomElement queryDocElem = queryDoc.documentElement();
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsgetfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ namespace QgsWfs
QDomDocument doc;
QString errorMsg;

if ( doc.setContent( mRequestParameters.value( QStringLiteral( "REQUEST_BODY" ) ), true, &errorMsg ) )
if ( doc.setContent( request.data(), true, &errorMsg ) )
{
QDomElement docElem = doc.documentElement();
aRequest = parseGetFeatureRequestBody( docElem, project );
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfstransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace QgsWfs
QDomDocument doc;
QString errorMsg;

if ( doc.setContent( parameters.value( QStringLiteral( "REQUEST_BODY" ) ), true, &errorMsg ) )
if ( doc.setContent( request.data(), true, &errorMsg ) )
{
QDomElement docElem = doc.documentElement();
aRequest = parseTransactionRequestBody( docElem, project );
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfstransaction_1_0_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace QgsWfs
QDomDocument doc;
QString errorMsg;

if ( doc.setContent( parameters.value( QStringLiteral( "REQUEST_BODY" ) ), true, &errorMsg ) )
if ( doc.setContent( request.data(), true, &errorMsg ) )
{
QDomElement docElem = doc.documentElement();
aRequest = parseTransactionRequestBody( docElem, project );
Expand Down

0 comments on commit f9015c9

Please sign in to comment.