From dcca6551c5f223393e732c3d2b5c86dded020e80 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 9 May 2011 16:01:45 -0700 Subject: [PATCH] Make root '/' the default request --- flight/Request.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flight/Request.php b/flight/Request.php index 44dd005..bfb6141 100644 --- a/flight/Request.php +++ b/flight/Request.php @@ -51,7 +51,12 @@ class Request { $this->url = substr($this->url, strlen($this->base)); } - $this->query = self::parseQuery($this->url); + if (empty($this->url)) { + $this->url = '/'; + } + else { + $this->query = self::parseQuery($this->url); + } } /**