diff --git a/.idea/php.xml b/.idea/php.xml
index db05e2b..b285d9d 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -41,6 +41,7 @@
+
diff --git a/.idea/simple-php-router.iml b/.idea/simple-php-router.iml
index 2c4d89b..e5bc18a 100644
--- a/.idea/simple-php-router.iml
+++ b/.idea/simple-php-router.iml
@@ -40,6 +40,7 @@
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 3cf5d38..5581dbb 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -5,11 +5,10 @@
-
-
-
-
-
+
+
+
+
@@ -29,8 +28,8 @@
-
-
+
+
@@ -41,8 +40,8 @@
-
-
+
+
@@ -53,17 +52,19 @@
-
-
+
+
+
-
+
-
-
+
+
+
@@ -71,8 +72,9 @@
-
-
+
+
+
@@ -80,8 +82,8 @@
-
-
+
+
@@ -89,11 +91,11 @@
-
+
-
-
+
+
@@ -104,8 +106,8 @@
-
-
+
+
@@ -215,10 +217,10 @@
-
+
@@ -235,7 +237,7 @@
true
DEFINITION_ORDER
-
+
@@ -276,6 +278,7 @@
+
@@ -287,10 +290,21 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -377,7 +391,7 @@
-
+
@@ -434,23 +448,26 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -526,6 +543,7 @@
+
@@ -562,7 +580,7 @@
-
+
@@ -574,32 +592,32 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -612,6 +630,7 @@
+
@@ -631,7 +650,7 @@
-
+
@@ -645,59 +664,23 @@
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
@@ -705,106 +688,105 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
-
+
-
+
-
+
+
+
-
+
-
+
@@ -825,49 +807,49 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -877,7 +859,7 @@
-
+
@@ -885,7 +867,7 @@
-
+
@@ -894,24 +876,14 @@
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
@@ -920,8 +892,8 @@
-
-
+
+
@@ -930,8 +902,8 @@
-
-
+
+
@@ -940,8 +912,8 @@
-
-
+
+
@@ -950,22 +922,35 @@
-
-
+
+
+
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Pecee/Http/Input/InputHandler.php b/src/Pecee/Http/Input/InputHandler.php
index 567a916..f05bf10 100644
--- a/src/Pecee/Http/Input/InputHandler.php
+++ b/src/Pecee/Http/Input/InputHandler.php
@@ -298,17 +298,13 @@ class InputHandler
// Append POST data
$output += $_POST;
+ $contents = file_get_contents('php://input');
- if (\in_array($this->request->getMethod(), ['put', 'patch', 'delete'], false) === true) {
-
- $contents = file_get_contents('php://input');
-
- // Append any PHP-input json
- if (strpos(trim($contents), '{') === 0) {
- $post = json_decode($contents, true);
- if ($post !== false) {
- $output += $post;
- }
+ // Append any PHP-input json
+ if (strpos(trim($contents), '{') === 0) {
+ $post = json_decode($contents, true);
+ if ($post !== false) {
+ $output += $post;
}
}
}