File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ class LishCommand extends PubCommand {
96
96
97
97
var location = postResponse.headers['location' ];
98
98
if (location == null ) throw PubHttpException (postResponse);
99
- handleJsonSuccess (await client.get (location, headers: pubApiHeaders));
99
+ handleJsonSuccess (
100
+ await client.get (Uri .parse (location), headers: pubApiHeaders));
100
101
});
101
102
});
102
103
} on PubHttpException catch (error) {
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class LoginCommand extends PubCommand {
40
40
41
41
Future <_UserInfo > retrieveUserInfo () async {
42
42
return await oauth2.withClient (cache, (client) async {
43
- final discovery = await httpClient
44
- . get ( 'https:// accounts.google.com/.well-known/openid-configuration' );
43
+ final discovery = await httpClient. get ( Uri . https (
44
+ ' accounts.google.com' , ' /.well-known/openid-configuration') );
45
45
final userInfoEndpoint = json.decode (discovery.body)['userinfo_endpoint' ];
46
46
final userInfoRequest = await client.get (userInfoEndpoint);
47
47
if (userInfoRequest.statusCode != 200 ) return null ;
You can’t perform that action at this time.
0 commit comments