Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d0e4b76

Browse filesBrowse files
mevers47fabpot
authored andcommitted
[HttpFoundation] fixed, overwritten CONTENT_TYPE
1 parent 5bf6d7e commit d0e4b76
Copy full SHA for d0e4b76

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ public static function create($uri, $method = 'GET', $parameters = array(), $coo
325325
case 'POST':
326326
case 'PUT':
327327
case 'DELETE':
328-
$server['CONTENT_TYPE'] = 'application/x-www-form-urlencoded';
328+
if (!isset($server['CONTENT_TYPE'])) {
329+
$server['CONTENT_TYPE'] = 'application/x-www-form-urlencoded';
330+
}
329331
case 'PATCH':
330332
$request = $parameters;
331333
$query = array();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.