Permalink
Browse files

msWMSGetCapabilities will not only check the MAP but every LAYERS. Fi…

…x for 4540
  • Loading branch information...
1 parent 62c89e8 commit 9ed444d7a7dbc457345ab4063092b926f91d6a5c @jlarouche jlarouche committed Dec 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapwms.c
View
@@ -2914,7 +2914,7 @@ int msWMSGetCapabilities(mapObj *map, int nVersion, cgiRequestObj *req, owsReque
#endif
"<SVG />"
, NULL);
- if (msOWSRequestIsEnabled(map, NULL, "M", "GetCapabilities", MS_FALSE))
+ if (msOWSRequestIsEnabled(map, NULL, "M", "GetCapabilities", MS_TRUE))
msWMSPrintRequestCap(nVersion, "Capabilities", script_url_encoded, "<WMS_XML />", NULL);
if (msOWSRequestIsEnabled(map, NULL, "M", "GetFeatureInfo", MS_FALSE))
msWMSPrintRequestCap(nVersion, "FeatureInfo", script_url_encoded, "<MIME /><GML.1 />", NULL);
@@ -2925,7 +2925,7 @@ int msWMSGetCapabilities(mapObj *map, int nVersion, cgiRequestObj *req, owsReque
/* WMS 1.1.0 and later */
/* Note changes to the request names, their ordering, and to the formats */
- if (msOWSRequestIsEnabled(map, NULL, "M", "GetCapabilities", MS_FALSE)) {
+ if (msOWSRequestIsEnabled(map, NULL, "M", "GetCapabilities", MS_TRUE)) {
if (nVersion >= OWS_1_3_0)
msWMSPrintRequestCap(nVersion, "GetCapabilities", script_url_encoded,
"text/xml",

0 comments on commit 9ed444d

Please sign in to comment.