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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Nov 27 00:00:10 PST 2015


Author: armin11
Date: 2015-11-27 00:00:09 -0800 (Fri, 27 Nov 2015)
New Revision: 9320

Modified:
   trunk/mapbender/http/classes/class_ows.php
Log:
Bugfix for http content-type  when post wfs requests - tinyows requires valid content-type text/xml not only xml

Modified: trunk/mapbender/http/classes/class_ows.php
===================================================================
--- trunk/mapbender/http/classes/class_ows.php	2015-11-25 15:50:55 UTC (rev 9319)
+++ trunk/mapbender/http/classes/class_ows.php	2015-11-27 08:00:09 UTC (rev 9320)
@@ -124,7 +124,7 @@
 	final protected function post ($url, $postData) {
 		$connection = new connector();
 		$connection->set("httpType", "post");
-		$connection->set("httpContentType", "xml");
+		$connection->set("httpContentType", "text/xml");
 		$connection->set("httpPostData", $postData);
 		//$e = new mb_notice("OWS REQUEST: " . $url . "\n\n" . $postData);
 		$data = $connection->load($url);



More information about the Mapbender_commits mailing list