micahlmartin/OAuth2Provider — pull request #9 by naasir (2012-11-20 19:17:30+00:00)
Title: Content-Type validation is too strict

* Previous implementation required the form-encoded content-type to look exactly like: 'application/x-www-form-urlencoded'. However, certain popular libraries, such as jQuery default to adding the character encoding as a suffix: 'application/x-www-form-urlencoded; charset=utf8'. Furthermore, when an ajax request is made from certain browsers (Firefox, IE), the character encoding is automatically added as a suffix. This change makes the content-type check more forgiving for scenarios where additional character encoding information is supplied.