"small fix for webdav running on a non apache server"

This commit is contained in:
Ralf Becker 2008-04-18 10:41:44 +00:00
parent f8f5ab36fa
commit c60b632541

View File

@ -56,15 +56,17 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
// special treatment for litmus compliance test // special treatment for litmus compliance test
// reply on its identifier header // reply on its identifier header
// not needed for the test itself but eases debugging // not needed for the test itself but eases debugging
foreach (apache_request_headers() as $key => $value) if (function_exists('apache_request_headers'))
{ {
if (stristr($key, "litmus")) foreach (apache_request_headers() as $key => $value)
{ {
error_log("Litmus test $value"); if (stristr($key, "litmus"))
header("X-Litmus-reply: ".$value); {
error_log("Litmus test $value");
header("X-Litmus-reply: ".$value);
}
} }
} }
// let the base class do all the work // let the base class do all the work
HTTP_WebDAV_Server::ServeRequest(); HTTP_WebDAV_Server::ServeRequest();
} }