🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
added support for PUT method
  • Loading branch information
fabpot committed May 12, 2011
commit efd1f1358c310e75f1f435b79c7a0e73358f9a50
7 changes: 7 additions & 0 deletions src/Symfony/Component/HttpFoundation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ public function initialize(array $query = array(), array $request = array(), arr
$this->server = new ServerBag($server);
$this->headers = new HeaderBag($this->server->getHeaders());

if ('application/x-www-form-urlencoded' == $this->server->get('CONTENT_TYPE')
&& in_array(strtoupper($this->server->get('REQUEST_METHOD', 'GET'), array('PUT', 'DELETE'))
) {
parse_str($this->getContent(), $data);
$this->request = new ParameterBag($data);
}

$this->content = $content;
$this->languages = null;
$this->charsets = null;
Expand Down