Skip to content
Permalink
Browse files
[wfs] Proper handling of DCP POST Uri
  • Loading branch information
elpaso committed Feb 25, 2018
1 parent ef24e65 commit 9083ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
@@ -182,7 +182,7 @@ QUrl QgsWFSDataSourceURI::requestUrl( const QString &request, const Method &meth
}
QUrl url( endpoint );
url.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WFS" ) );
if ( ! request.isEmpty() )
if ( method == Method::Get && ! request.isEmpty() )
url.addQueryItem( QStringLiteral( "REQUEST" ), request );
return url;
}
@@ -23,9 +23,7 @@ QgsWFSTransactionRequest::QgsWFSTransactionRequest( const QgsWFSDataSourceURI &u

bool QgsWFSTransactionRequest::send( const QDomDocument &doc, QDomDocument &serverResponse )
{
QUrl url( mUri.requestUrl( QStringLiteral( "Transaction" ) ) );
// We don't want/need REQUEST=Transaction
url.removeQueryItem( QStringLiteral( "REQUEST" ) );
QUrl url( mUri.requestUrl( QStringLiteral( "Transaction" ), QgsWFSDataSourceURI::Method::Post ) );

QgsDebugMsgLevel( doc.toString(), 4 );

0 comments on commit 9083ec6

Please sign in to comment.