8000 feature #7142 [2.3] Update src/Symfony/Component/HttpFoundation/Reque… · symfony/symfony@c06e754 · GitHub
[go: up one dir, main page]

Skip to content

Commit c06e754

Browse files
committed
feature #7142 [2.3] Update src/Symfony/Component/HttpFoundation/Request.php (datibbaw)
This PR was merged into the 2.6-dev branch. Discussion ---------- [2.3] Update src/Symfony/Component/HttpFoundation/Request.php This makes `getContentType()` work when a regular form is submitted. It would return `"form"` Commits ------- c81ec4d Update src/Symfony/Component/HttpFoundation/Request.php
2 parents c788b21 + c81ec4d commit c06e754

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,6 +1823,7 @@ protected static function initializeFormats()
18231823
'rdf' => array('application/rdf+xml'),
18241824
'atom' => array('application/atom+xml'),
18251825
'rss' => array('application/rss+xml'),
1826+
'form' => array('application/x-www-form-urlencoded'),
18261827
);
18271828
}
18281829

0 commit comments

Comments
 (0)
0