| Index: pkg/oauth2/lib/src/handle_access_token_response.dart
|
| diff --git a/pkg/oauth2/lib/src/handle_access_token_response.dart b/pkg/oauth2/lib/src/handle_access_token_response.dart
|
| index 65e706e6a608514fcfa7dde4038512848c1c3d8e..c82c818ab7f936c65bef5a8df71024cd9947c99e 100644
|
| --- a/pkg/oauth2/lib/src/handle_access_token_response.dart
|
| +++ b/pkg/oauth2/lib/src/handle_access_token_response.dart
|
| @@ -33,7 +33,7 @@ Credentials handleAccessTokenResponse(
|
|
|
| var contentType = response.headers['content-type'];
|
| if (contentType != null) {
|
| - contentType = new ContentType.fromString(contentType);
|
| + contentType = ContentType.parse(contentType);
|
| }
|
| validate(contentType != null && contentType.value == "application/json",
|
| 'content-type was "$contentType", expected "application/json"');
|
| @@ -103,7 +103,7 @@ void _handleErrorResponse(http.Response response, Uri tokenEndpoint) {
|
|
|
| var contentType = response.headers['content-type'];
|
| if (contentType != null) {
|
| - contentType = new ContentType.fromString(contentType);
|
| + contentType = ContentType.parse(contentType);
|
| }
|
| validate(contentType != null && contentType.value == "application/json",
|
| 'content-type was "$contentType", expected "application/json"');
|
|
|