From 31ed719d1d617964348b52baea9f177ed8e263b6 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Sun, 14 Feb 2016 11:03:39 -0500 Subject: [PATCH] Update Docker API hostname --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index f3c9794..9a852f1 100644 --- a/server.js +++ b/server.js @@ -4419,7 +4419,7 @@ cache(function(data, match, sendBadge, request) { user = 'library'; } var path = user + '/' + repo; - var url = 'https://registry.hub.docker.com/v2/repositories/' + path + '/stars/count/'; + var url = 'https://hub.docker.com/v2/repositories/' + path + '/stars/count/'; var badgeData = getBadgeData('docker stars', data); request(url, function(err, res, buffer) { if (err != null) { @@ -4450,7 +4450,7 @@ cache(function(data, match, sendBadge, request) { user = 'library'; } var path = user + '/' + repo; - var url = 'https://registry.hub.docker.com/v2/repositories/' + path; + var url = 'https://hub.docker.com/v2/repositories/' + path; var badgeData = getBadgeData('docker pulls', data); request(url, function(err, res, buffer) { if (err != null) {