Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleaning wfs service
  • Loading branch information
pblottiere committed Jul 23, 2018
1 parent a904056 commit acc2055
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/services/wfs/qgswfs.cpp
Expand Up @@ -64,17 +64,17 @@ namespace QgsWfs
void executeRequest( const QgsServerRequest &request, QgsServerResponse &response,
const QgsProject *project ) override
{
QgsServerRequest::Parameters params = request.parameters();
QString versionString = params.value( "VERSION" );
const QgsWfsParameters params( QUrlQuery( request.url() ) );

// Set the default version
QString versionString = params.version();
if ( versionString.isEmpty() )
{
versionString = version(); // defined in qgswfsutils.h
}

// Get the request
QString req = params.value( QStringLiteral( "REQUEST" ) );
const QString req = params.request();
if ( req.isEmpty() )
{
throw QgsServiceException( QStringLiteral( "OperationNotSupported" ),
Expand Down

0 comments on commit acc2055

Please sign in to comment.