Inconsistent Content-Type -header with lowercase t
Author: tonilaCreated Jan 2, 2026Updated Feb 6, 2026
Hi,
Is there a reason why Content-Type header here is sent with lower case t? I just debugged my mobile app few hours, until realizing, I need to implement case insensetive headers, when using passport. :)
public function getHttpHeaders(): array
{
$headers = [
'Content-type' => 'application/json',
];
...Source: thephpleague/oauth2-server