-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
The current implementation is too strict, is just looks for a case-insensitve match of the whole string:
Line 141 in 7914c43
| (strcasecmp(content_type, OAUTH2_CONTENT_TYPE_FORM_ENCODED) != 0)) { |
Where OAUTH2_CONTENT_TYPE_FORM_ENCODED is "application/x-www-form-urlencoded".
But it's perfectly valid to append a ;charset=… parameter to that MIME type and eg. Google Chrome sends this string by default (when no content type is explicitly specified and fetch() is called with a URLSearchParams object as the body):
application/x-www-form-urlencoded;charset=UTF-8
That's a perfectly valid Content-Type header and there's no reason for why liboauth2 shouldn't accept also such headers here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels