[HttpFoundation] fixed typo

This commit is contained in:
Fabien Potencier 2011-05-12 14:44:49 +02:00
parent 08846af9e2
commit 0848604ce1

View File

@ -130,7 +130,7 @@ class Request
$request = new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER); $request = new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);
if ('application/x-www-form-urlencoded' == $request->server->get('CONTENT_TYPE') if ('application/x-www-form-urlencoded' == $request->server->get('CONTENT_TYPE')
&& in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET'), array('PUT', 'DELETE')) && in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE'))
) { ) {
parse_str($this->getContent(), $data); parse_str($this->getContent(), $data);
$request->request = new ParameterBag($data); $request->request = new ParameterBag($data);