| Index: pkg/oauth2/lib/src/authorization_code_grant.dart
|
| diff --git a/pkg/oauth2/lib/src/authorization_code_grant.dart b/pkg/oauth2/lib/src/authorization_code_grant.dart
|
| index 5e9cbd2f6a13a822308bcd11301ff28d476fe375..297564f7e2c0cbec9d33e39080adbd2ef4967ce2 100644
|
| --- a/pkg/oauth2/lib/src/authorization_code_grant.dart
|
| +++ b/pkg/oauth2/lib/src/authorization_code_grant.dart
|
| @@ -185,7 +185,7 @@ class AuthorizationCodeGrant {
|
| if (parameters.containsKey('error')) {
|
| var description = parameters['error_description'];
|
| var uriString = parameters['error_uri'];
|
| - var uri = uriString == null ? null : new Uri.fromString(uriString);
|
| + var uri = uriString == null ? null : Uri.parse(uriString);
|
| throw new AuthorizationException(parameters['error'], description, uri);
|
| } else if (!parameters.containsKey('code')) {
|
| throw new FormatException('Invalid OAuth response for '
|
|
|