File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 24
24
#include " qgsogcutils.h"
25
25
#include " qgsconfigcache.h"
26
26
#include " qgsserverprojectutils.h"
27
+ #include " qgswfsparameters.h"
27
28
28
29
namespace QgsWfs
29
30
{
@@ -44,14 +45,14 @@ namespace QgsWfs
44
45
if ( href.isEmpty () )
45
46
{
46
47
QUrl url = request.url ();
47
- QUrlQuery q ( url );
48
48
49
- q.removeAllQueryItems ( QStringLiteral ( " REQUEST" ) );
50
- q.removeAllQueryItems ( QStringLiteral ( " VERSION" ) );
51
- q.removeAllQueryItems ( QStringLiteral ( " SERVICE" ) );
52
- q.removeAllQueryItems ( QStringLiteral ( " _DC" ) );
49
+ QgsWfsParameters params;
50
+ params.load ( QUrlQuery ( url ) );
51
+ params.remove ( QgsServerParameter::REQUEST );
52
+ params.remove ( QgsServerParameter::VERSION_SERVICE );
53
+ params.remove ( QgsServerParameter::SERVICE );
53
54
54
- url.setQuery ( q );
55
+ url.setQuery ( params. urlQuery () );
55
56
href = url.toString ( QUrl::FullyDecoded );
56
57
}
57
58
You can’t perform that action at this time.
0 commit comments