File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
tests/testdata/qgis_server Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -272,8 +272,12 @@ namespace QgsWmts
272
272
QDomElement httpElement = doc.createElement ( QStringLiteral ( " ows:HTTP" )/* ows:HTTP*/ );
273
273
dcpElement.appendChild ( httpElement );
274
274
275
- // Prepare url
276
- QString hrefString = serviceUrl ( request, project );
275
+ // Get service URL
276
+ const QUrl href = serviceUrl ( request, project );
277
+
278
+ // href needs to be a prefix
279
+ QString hrefString = href.toString ();
280
+ hrefString.append ( href.hasQuery () ? ' &' : ' ?' );
277
281
278
282
// ows:Get
279
283
QDomElement getElement = doc.createElement ( QStringLiteral ( " ows:Get" )/* ows:Get*/ );
Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ Content-Type: text/xml; charset=utf-8
20
20
<ows:Operation name="GetCapabilities">
21
21
<ows:DCP>
22
22
<ows:HTTP>
23
- <ows:Get xlink:href="https://www.qgis.org/"/>
23
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
24
24
</ows:HTTP>
25
25
</ows:DCP>
26
26
</ows:Operation>
27
27
<ows:Operation name="GetTile">
28
28
<ows:DCP>
29
29
<ows:HTTP>
30
- <ows:Get xlink:href="https://www.qgis.org/"/>
30
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
31
31
</ows:HTTP>
32
32
</ows:DCP>
33
33
</ows:Operation>
34
34
<ows:Operation name="GetFeatureInfo">
35
35
<ows:DCP>
36
36
<ows:HTTP>
37
- <ows:Get xlink:href="https://www.qgis.org/"/>
37
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
38
38
</ows:HTTP>
39
39
</ows:DCP>
40
40
</ows:Operation>
Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ Content-Type: text/xml; charset=utf-8
20
20
<ows:Operation name="GetCapabilities">
21
21
<ows:DCP>
22
22
<ows:HTTP>
23
- <ows:Get xlink:href="https://www.qgis.org/"/>
23
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
24
24
</ows:HTTP>
25
25
</ows:DCP>
26
26
</ows:Operation>
27
27
<ows:Operation name="GetTile">
28
28
<ows:DCP>
29
29
<ows:HTTP>
30
- <ows:Get xlink:href="https://www.qgis.org/"/>
30
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
31
31
</ows:HTTP>
32
32
</ows:DCP>
33
33
</ows:Operation>
34
34
<ows:Operation name="GetFeatureInfo">
35
35
<ows:DCP>
36
36
<ows:HTTP>
37
- <ows:Get xlink:href="https://www.qgis.org/"/>
37
+ <ows:Get xlink:href="https://www.qgis.org/? "/>
38
38
</ows:HTTP>
39
39
</ows:DCP>
40
40
</ows:Operation>
You can’t perform that action at this time.
0 commit comments