[index] Allow for a HEAD request on / to be served here too.

This commit is contained in:
Andrew McMillan 2010-09-11 22:52:00 +12:00
parent 6115d90cbf
commit bc88301a4f

View File

@ -1,5 +1,5 @@
<?php
if ( $_SERVER['REQUEST_METHOD'] != "GET" && $_SERVER['REQUEST_METHOD'] != "POST" ) {
if ( $_SERVER['REQUEST_METHOD'] != "GET" && $_SERVER['REQUEST_METHOD'] != "POST" && $_SERVER['REQUEST_METHOD'] != "HEAD" ) {
/**
* If the request is not a GET or POST then they must really want caldav.php!
*/