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. :)

https://github.com/thephpleague/oauth2-server/blob/7cb615be0d74b80c6f8ba144d5740509ca33eaac/src/Exception/OAuthServerException.php#L308

    public function getHttpHeaders(): array
    {
        $headers = [
            'Content-type' => 'application/json',
        ];
    ...

Source: thephpleague/oauth2-server