Extract Internet media type from content-type header 'application/json'

I notices that the Google OAuth2 response was returning:

    Content-Type: application/json; encoding=utf8

Which meant that the "if" statement on line 50 of OAuth2/Consumer.php was returning False, when the expected result was True.

Regards, Adam