[Mapbender-commits] r8220 - trunk/mapbender/owsproxy/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 30 04:59:50 EST 2011


Author: verenadiewald
Date: 2011-11-30 01:59:49 -0800 (Wed, 30 Nov 2011)
New Revision: 8220

Modified:
   trunk/mapbender/owsproxy/http/index.php
Log:
correct header information for Content-Type

Modified: trunk/mapbender/owsproxy/http/index.php
===================================================================
--- trunk/mapbender/owsproxy/http/index.php	2011-11-30 09:58:53 UTC (rev 8219)
+++ trunk/mapbender/owsproxy/http/index.php	2011-11-30 09:59:49 UTC (rev 8220)
@@ -252,9 +252,9 @@
  * @return string the content of the FeatureInfo document
  */
 function getFeatureInfo($url){
-	global $info_format;
-	//$notice = new mb_notice("owsproxy: Try to fetch FeatureInfoRequest: ".$url);
-	header("Content-Type: ".$info_format);
+	global $reqParams;
+	//$e = new mb_notice("owsproxy: Try to fetch FeatureInfoRequest: ".$url);
+	header("Content-Type: ".$reqParams['info_format']);
 	
 	if (func_num_args() == 2) { //new for HTTP Authentication
 		$auth = func_get_arg(1);
@@ -274,9 +274,9 @@
  * @return echo the content of the GetFeature document
  */
 function getFeature($url){
-	global $info_format;
-
-	header("Content-Type: ".$info_format);
+	global $reqParams;
+	
+	header("Content-Type: ".$reqParams['info_format']);
 	$content = getDocumentContent($url);
 	$content = matchUrls($content);
 	echo $content;



More information about the Mapbender_commits mailing list