Skip to content

Commit 23aa176

Browse files
committed
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
1 parent ae28880 commit 23aa176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bridges/HttpKernel.php

Lines changed: 1 addition & 1 deletion
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)