Skip to content
Permalink
Browse files

wms: case insensitive check if url is WMTS

  • Loading branch information
blazek committed Oct 30, 2015
1 parent 7019a8c commit ad3efc06b12747991bf26c213ddaa2426462436a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/wms/qgswmscapabilities.cpp
@@ -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";
}

0 comments on commit ad3efc0

Please sign in to comment.
You can’t perform that action at this time.