Skip to content

Commit 1877eb5

Browse files
committedMay 8, 2013
WMS capabilities HTTP Get namespace fix
1 parent 7aa0dd5 commit 1877eb5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,12 +2036,16 @@ void QgsWmsProvider::parseHttp( QDomElement const & e, QgsWmsHttpProperty& httpP
20362036
QDomElement e1 = n1.toElement(); // try to convert the node to an element.
20372037
if ( !e1.isNull() )
20382038
{
2039-
if ( e1.tagName() == "Get" )
2039+
QString tagName = e1.tagName();
2040+
if ( tagName.startsWith( "wms:" ) )
2041+
tagName = tagName.mid( 4 );
2042+
2043+
if ( tagName == "Get" )
20402044
{
20412045
QgsDebugMsg( " Get." );
20422046
parseGet( e1, httpProperty.get );
20432047
}
2044-
else if ( e1.tagName() == "Post" )
2048+
else if ( tagName == "Post" )
20452049
{
20462050
QgsDebugMsg( " Post." );
20472051
parsePost( e1, httpProperty.post );

0 commit comments

Comments
 (0)
Please sign in to comment.