diff --git a/flight/net/Request.php b/flight/net/Request.php index 4b485f2..d66a5a7 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -187,9 +187,12 @@ class Request { if (strpos($this->type, 'application/json') === 0 && $this->body != '') { $this->json = json_decode($this->body, true); - $this->json = new Collection($this->json); + } else { + $this->json = array(); } + $this->json = new Collection($this->json); + } /**