Skip to content

Commit 095e1b0

Browse files
committed
Merge pull request #1 from php-pm/andig-patch-1
Ensure request body is parsed for POST, PUT, PATCH and DELETE methods
2 parents ae28880 + 23aa176 commit 095e1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bridges/HttpKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected static function mapRequest(ReactRequest $reactRequest, $content)
112112

113113
// parse body?
114114
if (isset($headers['Content-Type']) && (0 === strpos($headers['Content-Type'], 'application/x-www-form-urlencoded'))
115-
&& in_array(strtoupper($method), array('PUT', 'DELETE', 'PATCH'))
115+
&& in_array(strtoupper($method), array('POST', 'PUT', 'DELETE', 'PATCH'))
116116
) {
117117
parse_str($content, $post);
118118
}

0 commit comments

Comments
 (0)