Skip to content

Commit

Permalink
Merge pull request #17 from Guite/master
Browse files Browse the repository at this point in the history
PHP 8.1 compat fix
  • Loading branch information
goetas authored Jan 6, 2022
2 parents 2050dd6 + 3c12a1f commit d417767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/MultipartRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(bool $injectFirstPart = true)
public function processRequest(Request $request)
{
$contentType = $request->headers->get('Content-Type');
if (0 !== strpos($contentType, 'multipart/') || false !== strpos($contentType, 'multipart/form-data')) {
if (null === $contentType || 0 !== strpos($contentType, 'multipart/') || false !== strpos($contentType, 'multipart/form-data')) {
return;
}

Expand Down

0 comments on commit d417767

Please sign in to comment.