Skip to content

Commit

Permalink
Merge pull request #43459 from pblottiere/server_wms_no_version
Browse files Browse the repository at this point in the history
VERSION is now mandatory in WMS 1.3.0
  • Loading branch information
pblottiere committed May 31, 2021
2 parents e7ccf1f + ce01a35 commit b7ea7f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/services/wms/qgswmsgetmap.cpp
Expand Up @@ -32,6 +32,12 @@ namespace QgsWms
const QgsWmsRequest &request,
QgsServerResponse &response )
{
if ( request.serverParameters().version().isEmpty() )
{
throw QgsServiceException( QgsServiceException::OGC_OperationNotSupported,
QStringLiteral( "Please add the value of the VERSION parameter" ), 501 );
}

// prepare render context
QgsWmsRenderContext context( project, serverIface );
context.setFlag( QgsWmsRenderContext::UpdateExtent );
Expand Down

0 comments on commit b7ea7f2

Please sign in to comment.