Skip to content

Commit

Permalink
Update pub doc URLs (#1789)
Browse files Browse the repository at this point in the history
Send successful authorizations to https endpoint
  • Loading branch information
kevmoo authored Jan 22, 2018
1 parent 64c5f40 commit c2b4902
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/src/command/lish.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class LishCommand extends PubCommand {
log.error("Sorry, your package is missing "
"${(errors.length > 1) ? 'some requirements' : 'a requirement'} "
"and can't be published yet.\nFor more information, see: "
"http://pub.dartlang.org/doc/pub-lish.html.\n");
"https://www.dartlang.org/tools/pub/cmd/pub-lish.\n");
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/lock_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class LockFile {
var data = {'sdks': sdks, 'packages': packageMap};
return """
# Generated by pub
# See http://pub.dartlang.org/doc/glossary.html#lockfile
# See https://www.dartlang.org/tools/pub/glossary#lockfile
${yamlToString(data)}
""";
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/oauth2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Future<Client> _authorize() {
grant.handleAuthorizationResponse(queryToMap(queryString)),
completer);

return new shelf.Response.found('http://pub.dartlang.org/authorized');
return new shelf.Response.found('https://pub.dartlang.org/authorized');
});

var authUrl = grant.getAuthorizationUrl(
Expand Down
2 changes: 1 addition & 1 deletion test/oauth2/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Future authorizePub(TestProcess pub, ShelfTestServer server,
..followRedirects = false)
.send();
expect(response.headers['location'],
equals('http://pub.dartlang.org/authorized'));
equals('https://pub.dartlang.org/authorized'));

handleAccessTokenRequest(server, accessToken);
}
Expand Down

0 comments on commit c2b4902

Please sign in to comment.