[mapguide-commits] r7280 - trunk/MgDev/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Dec 18 02:56:56 PST 2012


Author: jng
Date: 2012-12-18 02:56:55 -0800 (Tue, 18 Dec 2012)
New Revision: 7280

Modified:
   trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
Log:
#2053: Default to text/xml if INFO_FORMAT is not specified for WMS GetFeatureInfo. This allows WMS GetFeatureInfo to work for clients like Gaia, that are not passing this parameter in

Modified: trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp	2012-12-18 10:25:44 UTC (rev 7279)
+++ trunk/MgDev/Web/src/HttpHandler/HttpWmsGetFeatureInfo.cpp	2012-12-18 10:56:55 UTC (rev 7280)
@@ -121,6 +121,12 @@
     // world is not case-insensitive (with respect to names,) but
     // WMS is.
     Ptr<MgHttpRequestParam> origReqParams = m_hRequest->GetRequestParam();
+
+    // #2053: Clients like Gaia doesn't pass this in, so default to XML if INFO_FORMAT
+    // is not specified
+    if (!origReqParams->ContainsParameter(kpszQueryStringInfoFormat))
+        origReqParams->AddParameter(kpszQueryStringInfoFormat, kpszMimeTypeXml);
+
     MgHttpRequestParameters requestParams(origReqParams);
 
     // Create the WMS handler



More information about the mapguide-commits mailing list