Skip to content
Permalink
Browse files

Cleaning GetCapabilities doc for WFS

  • Loading branch information
pblottiere committed Jul 2, 2018
1 parent f55d9c1 commit 438a8dfd85b4c944bc39013e80f53922f5c28d1b
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/server/services/wfs/qgswfsutils.cpp
@@ -24,6 +24,7 @@
#include "qgsogcutils.h"
#include "qgsconfigcache.h"
#include "qgsserverprojectutils.h"
#include "qgswfsparameters.h"

namespace QgsWfs
{
@@ -44,14 +45,14 @@ namespace QgsWfs
if ( href.isEmpty() )
{
QUrl url = request.url();
QUrlQuery q( url );

q.removeAllQueryItems( QStringLiteral( "REQUEST" ) );
q.removeAllQueryItems( QStringLiteral( "VERSION" ) );
q.removeAllQueryItems( QStringLiteral( "SERVICE" ) );
q.removeAllQueryItems( QStringLiteral( "_DC" ) );
QgsWfsParameters params;
params.load( QUrlQuery( url ) );
params.remove( QgsServerParameter::REQUEST );
params.remove( QgsServerParameter::VERSION_SERVICE );
params.remove( QgsServerParameter::SERVICE );

url.setQuery( q );
url.setQuery( params.urlQuery() );
href = url.toString( QUrl::FullyDecoded );
}

0 comments on commit 438a8df

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