Skip to content

Commit

Permalink
Consider that the MAP-parameter can be upper or lower case in the ori…
Browse files Browse the repository at this point in the history
…ginal url
  • Loading branch information
mhugent committed Feb 3, 2022
1 parent 68b4dad commit 43ffbc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/qgsserverprojectutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ QString QgsServerProjectUtils::serviceUrl( const QString &service, const QgsServ
}

// https://docs.qgis.org/3.16/en/docs/server_manual/services.html#wms-map
const QString map = QUrlQuery( request.originalUrl().query() ).queryItemValue( QStringLiteral( "MAP" ) );
const QString map = QUrlQuery( request.originalUrl().query().replace( QStringLiteral( "MAP" ), QStringLiteral( "MAP" ), Qt::CaseInsensitive ) ).queryItemValue( QStringLiteral( "MAP" ) );

if ( ! map.isEmpty() )
{
QUrlQuery query;
Expand Down

0 comments on commit 43ffbc5

Please sign in to comment.