File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,22 @@ QgsWFSTransactionRequest::QgsWFSTransactionRequest( const QgsWFSDataSourceURI &u
23
23
24
24
bool QgsWFSTransactionRequest::send ( const QDomDocument &doc, QDomDocument &serverResponse )
25
25
{
26
- QUrl url ( mUri .requestUrl ( QString ( ) ) );
26
+ QUrl url ( mUri .requestUrl ( QStringLiteral ( " Transaction" ) ) );
27
+ // We don't want/need REQUEST=Transaction
28
+ url.removeQueryItem ( QStringLiteral ( " REQUEST" ) );
27
29
28
- QgsDebugMsg ( doc.toString () );
30
+ QgsDebugMsgLevel ( doc.toString (), 4 );
29
31
30
32
if ( sendPOST ( url, QStringLiteral ( " text/xml" ), doc.toByteArray ( -1 ) ) )
31
33
{
32
34
QString errorMsg;
33
35
if ( !serverResponse.setContent ( mResponse , true , &errorMsg ) )
34
36
{
35
- QgsDebugMsg ( mResponse );
36
- QgsDebugMsg ( errorMsg );
37
+ QgsDebugMsgLevel ( mResponse , 4 );
38
+ QgsDebugMsgLevel ( errorMsg, 4 );
37
39
return false ;
38
40
}
39
- QgsDebugMsg ( mResponse );
41
+ QgsDebugMsgLevel ( mResponse , 4 );
40
42
return true ;
41
43
}
42
44
return false ;
You can’t perform that action at this time.
0 commit comments