Skip to content

Commit ad3efc0

Browse files
committedOct 30, 2015
wms: case insensitive check if url is WMTS
1 parent 7019a8c commit ad3efc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/wms/qgswmscapabilities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,8 +1908,8 @@ bool QgsWmsCapabilitiesDownload::downloadCapabilities()
19081908

19091909
QString url = mBaseUrl;
19101910
QgsDebugMsg( "url = " + url );
1911-
if ( !url.contains( "SERVICE=WMTS" ) &&
1912-
!url.contains( "/WMTSCapabilities.xml" ) )
1911+
if ( !url.contains( "SERVICE=WMTS", Qt::CaseInsensitive ) &&
1912+
!url.contains( "/WMTSCapabilities.xml", Qt::CaseInsensitive ) )
19131913
{
19141914
url += "SERVICE=WMS&REQUEST=GetCapabilities";
19151915
}

0 commit comments

Comments
 (0)
Please sign in to comment.