[Mapbender-commits] r9157 - trunk/mapbender/http_auth/http
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Mar 2 01:27:24 PST 2015
Author: armin11
Date: 2015-03-02 01:27:24 -0800 (Mon, 02 Mar 2015)
New Revision: 9157
Modified:
trunk/mapbender/http_auth/http/index.php
Log:
Bugfix for http_auth capabilities request
Modified: trunk/mapbender/http_auth/http/index.php
===================================================================
--- trunk/mapbender/http_auth/http/index.php 2015-02-26 13:46:06 UTC (rev 9156)
+++ trunk/mapbender/http_auth/http/index.php 2015-03-02 09:27:24 UTC (rev 9157)
@@ -510,10 +510,11 @@
header("Content-Type: application/xml");
if (func_num_args() == 3) { //new for HTTP Authentication
$auth = func_get_arg(2);
- $content = getDocumentContent($requestFull, $auth);
+ $d = new connector($requestFull, $auth);
} else {
- $content = getDocumentContent($requestFull);
+ $d = new connector($requestFull);
}
+ $content = $d->file;
//show temporal content fo capabilities
$e = new mb_notice("content from wms.php fascade after going thru curl: " . $content);
//loading as xml
@@ -744,6 +745,8 @@
echo $content;
}
return true;
+ } else if (strtoupper($reqParams["request"]) == "GETCAPABILITIES") {
+ echo $content;
} else {
if (header !== false) {
header($header);
More information about the Mapbender_commits
mailing list