Skip to content

Commit 91d8d5c

Browse files
committed
Force Content-Type header contents to lowercase as per #220 (comment)
1 parent 6256b61 commit 91d8d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/RequestBodyParserMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class RequestBodyParserMiddleware
88
{
99
public function __invoke(ServerRequestInterface $request, $next)
1010
{
11-
$type = $request->getHeaderLine('Content-Type');
11+
$type = strtolower($request->getHeaderLine('Content-Type'));
1212

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

0 commit comments

Comments
 (0)