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 2424#include " qgsogcutils.h"
2525#include " qgsconfigcache.h"
2626#include " qgsserverprojectutils.h"
27+ #include " qgswfsparameters.h"
2728
2829namespace QgsWfs
2930{
@@ -44,14 +45,14 @@ namespace QgsWfs
4445 if ( href.isEmpty () )
4546 {
4647 QUrl url = request.url ();
47- QUrlQuery q ( url );
4848
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 );
5354
54- url.setQuery ( q );
55+ url.setQuery ( params. urlQuery () );
5556 href = url.toString ( QUrl::FullyDecoded );
5657 }
5758
You can’t perform that action at this time.
0 commit comments