upd: use hub.fastgit.org instead of github.com.cnpmjs.org avoid 429

This commit is contained in:
purocean
2022-01-13 22:34:06 +08:00
parent abba54f8a7
commit c990cf86e5
+1 -1
View File
@@ -27,7 +27,7 @@ const httpRequest = (Provider.prototype as any).httpRequest
console.log('updater httpRequest', url.href)
if (url.pathname.endsWith('.atom')) {
url.host = 'github.com.cnpmjs.org'
url.host = 'hub.fastgit.org'
headers.accept = '*/*'
headers['user-agent'] = 'curl/7.77.0'
url.pathname = url.pathname.replace('/https://github.com', '')