Skip to content

Commit

Permalink
Update src/Event/Http/Psr7Bridge.php
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeboot authored Nov 21, 2022
1 parent 60e1677 commit 23b8897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Event/Http/Psr7Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static function parseBodyAndUploadedFiles(HttpRequestEvent $event): arra
$parsedBody = null;
$contentType = $event->getContentType();
if ($contentType !== null && $event->getMethod() === 'POST') {
if (substr($contentType, 0, 33) === 'application/x-www-form-urlencoded') {
if (strpos($contentType, 'application/x-www-form-urlencoded') === 0) {
parse_str($bodyString, $parsedBody);
} else {
$document = new Part("Content-type: $contentType\r\n\r\n" . $bodyString);
Expand Down

0 comments on commit 23b8897

Please sign in to comment.