Skip to content
Permalink
Browse files

Merge pull request #6454 from elpaso/wfs-dcp-post-uri

[wfs] Proper handling of DCP POST Uri
  • Loading branch information
elpaso committed Feb 26, 2018
2 parents c13b627 + 9083ec6 commit 835eb150bc8f103e395ebc243a9521fc8872a355
Showing with 2 additions and 4 deletions.
  1. +1 −1 src/providers/wfs/qgswfsdatasourceuri.cpp
  2. +1 −3 src/providers/wfs/qgswfstransactionrequest.cpp
@@ -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 835eb15

Please sign in to comment.
You can’t perform that action at this time.