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 9083ec6f351da4f0fe14e2ba5def54b32c32faea
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 9083ec6

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