Skip to content

Commit 0e0cf3e

Browse files
committedNov 29, 2016
Exception format is XML, not capabilities format
1 parent 120c8d3 commit 0e0cf3e

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
@@ -480,7 +480,7 @@ QDomDocument QgsWmsServer::getCapabilities( const QString& version, bool fullPro
480480

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

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

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

566566
//UserDefinedSymbolization element

0 commit comments

Comments
 (0)
Please sign in to comment.