Skip to content

Commit c2b4902

Browse files
authored
Update pub doc URLs (#1789)
Send successful authorizations to https endpoint
1 parent 64c5f40 commit c2b4902

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/src/command/lish.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class LishCommand extends PubCommand {
164164
log.error("Sorry, your package is missing "
165165
"${(errors.length > 1) ? 'some requirements' : 'a requirement'} "
166166
"and can't be published yet.\nFor more information, see: "
167-
"http://pub.dartlang.org/doc/pub-lish.html.\n");
167+
"https://www.dartlang.org/tools/pub/cmd/pub-lish.\n");
168168
return false;
169169
}
170170

lib/src/lock_file.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class LockFile {
270270
var data = {'sdks': sdks, 'packages': packageMap};
271271
return """
272272
# Generated by pub
273-
# See http://pub.dartlang.org/doc/glossary.html#lockfile
273+
# See https://www.dartlang.org/tools/pub/glossary#lockfile
274274
${yamlToString(data)}
275275
""";
276276
}

lib/src/oauth2.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Future<Client> _authorize() {
198198
grant.handleAuthorizationResponse(queryToMap(queryString)),
199199
completer);
200200

201-
return new shelf.Response.found('http://pub.dartlang.org/authorized');
201+
return new shelf.Response.found('https://pub.dartlang.org/authorized');
202202
});
203203

204204
var authUrl = grant.getAuthorizationUrl(

test/oauth2/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Future authorizePub(TestProcess pub, ShelfTestServer server,
3131
..followRedirects = false)
3232
.send();
3333
expect(response.headers['location'],
34-
equals('http://pub.dartlang.org/authorized'));
34+
equals('https://pub.dartlang.org/authorized'));
3535

3636
handleAccessTokenRequest(server, accessToken);
3737
}

0 commit comments

Comments
 (0)