Skip to content
Permalink
Browse files
VERSION is mandatory for getmap requests in WMS 1.3.0
  • Loading branch information
pblottiere authored and nyalldawson committed May 31, 2021
1 parent 0999a96 commit e2f4fc65c5d8520ed2e2cf22b20697322af99e67
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/server/services/wms/qgswmsgetmap.cpp
@@ -32,6 +32,13 @@ namespace QgsWms
const QString &, const QgsServerRequest &request,
QgsServerResponse &response )
{
// version is mandatory for getmap requests
if ( request.serverParameters().version().isEmpty() )
{
throw QgsServiceException( QgsServiceException::OGC_OperationNotSupported,
QStringLiteral( "Please add the value of the VERSION parameter" ), 501 );
}

// get wms parameters from query
const QgsWmsParameters parameters( QUrlQuery( request.url() ) );

0 comments on commit e2f4fc6

Please sign in to comment.