Skip to content

Commit

Permalink
WMS capabilities HTTP Get namespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 8, 2013
1 parent 7aa0dd5 commit 1877eb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2036,12 +2036,16 @@ void QgsWmsProvider::parseHttp( QDomElement const & e, QgsWmsHttpProperty& httpP
QDomElement e1 = n1.toElement(); // try to convert the node to an element.
if ( !e1.isNull() )
{
if ( e1.tagName() == "Get" )
QString tagName = e1.tagName();
if ( tagName.startsWith( "wms:" ) )
tagName = tagName.mid( 4 );

if ( tagName == "Get" )
{
QgsDebugMsg( " Get." );
parseGet( e1, httpProperty.get );
}
else if ( e1.tagName() == "Post" )
else if ( tagName == "Post" )
{
QgsDebugMsg( " Post." );
parsePost( e1, httpProperty.post );
Expand Down

0 comments on commit 1877eb5

Please sign in to comment.