"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,6 +56,8 @@ 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
if (function_exists('apache_request_headers'))
{
foreach (apache_request_headers() as $key => $value) foreach (apache_request_headers() as $key => $value)
{ {
if (stristr($key, "litmus")) if (stristr($key, "litmus"))
@ -64,7 +66,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
header("X-Litmus-reply: ".$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();
} }