[Mapbender-commits] r8253 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 15 04:41:43 EST 2012


Author: armin11
Date: 2012-02-15 01:41:43 -0800 (Wed, 15 Feb 2012)
New Revision: 8253

Modified:
   trunk/mapbender/http/classes/class_connector.php
Log:
Bugfix - some server (e.g. geoserver) capabilities react dynamically on http header information. They pull the port from the host string and push this info into the urls of the capabilities :-( . If the resource is requested thru curl the adopted headers must have this information.

Modified: trunk/mapbender/http/classes/class_connector.php
===================================================================
--- trunk/mapbender/http/classes/class_connector.php	2012-02-15 09:38:37 UTC (rev 8252)
+++ trunk/mapbender/http/classes/class_connector.php	2012-02-15 09:41:43 UTC (rev 8253)
@@ -287,7 +287,7 @@
 			$headers = array(
 					"GET ".$path." HTTP/1.1",
 					"User-Agent: ".$_SERVER['HTTP_USER_AGENT'],
-           				"Host: ".$host,
+           				"Host: ".$host.":".$port,
 	           		 	"Accept: */*",
 					"Proxy-Connection: Keep-Alive"
 			);



More information about the Mapbender_commits mailing list