Skip to content

Commit

Permalink
Force Content-Type header contents to lowercase as per #220 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Sep 20, 2017
1 parent 6256b61 commit 91d8d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/RequestBodyParserMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class RequestBodyParserMiddleware
{
public function __invoke(ServerRequestInterface $request, $next)
{
$type = $request->getHeaderLine('Content-Type');
$type = strtolower($request->getHeaderLine('Content-Type'));

if ($type === 'application/x-www-form-urlencoded') {
return $next($this->parseFormUrlencoded($request));
Expand Down

0 comments on commit 91d8d5c

Please sign in to comment.