From 7edee8e6d38dd7e4a0ef9b53a6a2f7b63fa09377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Fri, 25 Nov 2016 02:04:42 +0100 Subject: [PATCH] Fixed Exception when using Request --- src/Pecee/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Request.php b/src/Pecee/Http/Request.php index 584dbab..839ec96 100644 --- a/src/Pecee/Http/Request.php +++ b/src/Pecee/Http/Request.php @@ -17,8 +17,8 @@ class Request $this->parseHeaders(); $this->host = $this->getHeader('http-host');; $this->uri = $this->getHeader('request-uri'); - $this->method = $this->input->get('_method', strtolower($this->getHeader('request-method'))); $this->input = new Input($this); + $this->method = $this->input->get('_method', strtolower($this->getHeader('request-method'))); } protected function parseHeaders()