mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
WMS 1.3 compliance: Each OnlineResource URL intended for HTTP Get requests in the capabilities document is a URL prefix
This commit is contained in:
parent
0e0cf3e1bd
commit
36e89a3146
@ -427,6 +427,12 @@ QDomDocument QgsWmsServer::getCapabilities( const QString& version, bool fullPro
|
||||
hrefString = serviceUrl();
|
||||
}
|
||||
|
||||
//href needs to be a prefix
|
||||
if ( !hrefString.endsWith( "?" ) && !hrefString.endsWith( "&" ) )
|
||||
{
|
||||
hrefString.append( hrefString.contains( "?" ) ? "&" : "?" );
|
||||
}
|
||||
|
||||
if ( version == QLatin1String( "1.1.1" ) )
|
||||
{
|
||||
doc = QDomDocument( QStringLiteral( "WMT_MS_Capabilities SYSTEM 'http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd'" ) ); //WMS 1.1.1 needs DOCTYPE "SYSTEM http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user