From c1c25e19ff64cfd0e76c6f9cc00d5202fe77b3a0 Mon Sep 17 00:00:00 2001 From: Simon Sessingo Date: Sun, 17 Dec 2017 10:38:13 +0100 Subject: [PATCH] Enabled fallback _method for every request-type. --- 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 eb2fe26..9db7afe 100644 --- a/src/Pecee/Http/Request.php +++ b/src/Pecee/Http/Request.php @@ -18,7 +18,7 @@ class Request $this->host = $this->getHeader('http-host'); $this->uri = $this->getHeader('request-uri'); $this->input = new Input($this); - $this->method = strtolower($this->input->get('_method', $this->getHeader('request-method'), 'post')); + $this->method = strtolower($this->input->get('_method', $this->getHeader('request-method'))); } protected function parseHeaders()