[Mapbender-commits] r8219 - branches/2.7/owsproxy/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 30 04:58:53 EST 2011


Author: verenadiewald
Date: 2011-11-30 01:58:53 -0800 (Wed, 30 Nov 2011)
New Revision: 8219

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

Modified: branches/2.7/owsproxy/http/index.php
===================================================================
--- branches/2.7/owsproxy/http/index.php	2011-11-30 09:57:40 UTC (rev 8218)
+++ branches/2.7/owsproxy/http/index.php	2011-11-30 09:58:53 UTC (rev 8219)
@@ -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,7 +274,9 @@
  * @return echo the content of the GetFeature document
  */
 function getFeature($url){
-	global $info_format;
+	global $reqParams;
+	
+	header("Content-Type: ".$reqParams['info_format']);
 
 	header("Content-Type: ".$info_format);
 	$content = getDocumentContent($url);



More information about the Mapbender_commits mailing list