fix handling of HEAD http requests.

This commit is contained in:
Taylor Otwell
2012-02-23 08:43:55 -06:00
parent e70261e962
commit f624a6849f
2 changed files with 12 additions and 1 deletions

View File

@@ -26,7 +26,13 @@ class Router {
*
* @var array
*/
public static $routes = array();
public static $routes = array(
'GET' => array(),
'POST' => array(),
'PUT' => array(),
'DELETE' => array(),
'HEAD' => array(),
);
/**
* All of the "fallback" routes that have been registered.