Skip to content
Permalink
Browse files

Exception format is XML, not capabilities format

  • Loading branch information
mhugent authored and rldhont committed Dec 13, 2016
1 parent 5d80e1b commit 39641109a9518806c19dd23d3210dfec938d3494
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/qgswmsserver.cpp
@@ -476,7 +476,7 @@ QDomDocument QgsWMSServer::getCapabilities( QString version, bool fullProjectInf

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

@@ -556,7 +556,7 @@ QDomDocument QgsWMSServer::getCapabilities( QString version, bool fullProjectInf

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

//UserDefinedSymbolization element

0 comments on commit 3964110

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