Skip to content
Permalink
Browse files

Exception format is XML, not capabilities format

  • Loading branch information
mhugent committed Nov 29, 2016
1 parent 120c8d3 commit 0e0cf3e1bde81d55ade0e8826c61e142ad9b929c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/qgswmsserver.cpp
@@ -480,7 +480,7 @@ QDomDocument QgsWmsServer::getCapabilities( const QString& version, bool fullPro

//wms:GetCapabilities
elem = doc.createElement( QStringLiteral( "GetCapabilities" )/*wms:GetCapabilities*/ );
appendFormats( doc, elem, QStringList() << ( version == QLatin1String( "1.1.1" ) ? "application/vnd.ogc.wms_xml" : "XML" ) );
appendFormats( doc, elem, QStringList() << ( version == QLatin1String( "1.1.1" ) ? "application/vnd.ogc.wms_xml" : "text/xml" ) );
elem.appendChild( dcpTypeElement );
requestElement.appendChild( elem );

@@ -560,7 +560,7 @@ QDomDocument QgsWmsServer::getCapabilities( const QString& version, bool fullPro

//Exception element is mandatory
elem = doc.createElement( QStringLiteral( "Exception" ) );
appendFormats( doc, elem, QStringList() << ( version == QLatin1String( "1.1.1" ) ? "application/vnd.ogc.se_xml" : "text/xml" ) );
appendFormats( doc, elem, QStringList() << ( version == QLatin1String( "1.1.1" ) ? "application/vnd.ogc.se_xml" : "XML" ) );
capabilityElement.appendChild( elem );

//UserDefinedSymbolization element

0 comments on commit 0e0cf3e

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