From 23aa176825bf495e2e7cb4b04987be51815c0bbb Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 16 Apr 2015 14:59:29 +0200 Subject: [PATCH] Ensure request body is parsed for POST, PUT, PATCH and DELETE methods The list should be complete according to http://stackoverflow.com/questions/5905916/payloads-of-http-request-methods --- Bridges/HttpKernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bridges/HttpKernel.php b/Bridges/HttpKernel.php index 2854389..8764bea 100644 --- a/Bridges/HttpKernel.php +++ b/Bridges/HttpKernel.php @@ -112,7 +112,7 @@ protected static function mapRequest(ReactRequest $reactRequest, $content) // parse body? if (isset($headers['Content-Type']) && (0 === strpos($headers['Content-Type'], 'application/x-www-form-urlencoded')) - && in_array(strtoupper($method), array('PUT', 'DELETE', 'PATCH')) + && in_array(strtoupper($method), array('POST', 'PUT', 'DELETE', 'PATCH')) ) { parse_str($content, $post); }