Skip to content

Commit

Permalink
wms: case insensitive check if url is WMTS
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Oct 30, 2015
1 parent 7019a8c commit ad3efc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmscapabilities.cpp
Expand Up @@ -1908,8 +1908,8 @@ bool QgsWmsCapabilitiesDownload::downloadCapabilities()

QString url = mBaseUrl;
QgsDebugMsg( "url = " + url );
if ( !url.contains( "SERVICE=WMTS" ) &&
!url.contains( "/WMTSCapabilities.xml" ) )
if ( !url.contains( "SERVICE=WMTS", Qt::CaseInsensitive ) &&
!url.contains( "/WMTSCapabilities.xml", Qt::CaseInsensitive ) )
{
url += "SERVICE=WMS&REQUEST=GetCapabilities";
}
Expand Down

0 comments on commit ad3efc0

Please sign in to comment.