Skip to content

Commit 291f1b6

Browse files
mhugentrldhont
authored andcommittedDec 12, 2016
Exception format is XML, not capabilities format
1 parent 97eb48e commit 291f1b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ QDomDocument QgsWMSServer::getCapabilities( QString version, bool fullProjectInf
476476

477477
//wms:GetCapabilities
478478
elem = doc.createElement( "GetCapabilities"/*wms:GetCapabilities*/ );
479-
appendFormats( doc, elem, QStringList() << ( version == "1.1.1" ? "application/vnd.ogc.wms_xml" : "XML" ) );
479+
appendFormats( doc, elem, QStringList() << ( version == "1.1.1" ? "application/vnd.ogc.wms_xml" : "text/xml" ) );
480480
elem.appendChild( dcpTypeElement );
481481
requestElement.appendChild( elem );
482482

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

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

562562
//UserDefinedSymbolization element

0 commit comments

Comments
 (0)
Please sign in to comment.