mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
upd: use hub.fastgit.org instead of github.com.cnpmjs.org avoid 429
This commit is contained in:
+1
-1
@@ -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', '')
|
||||
|
||||
Reference in New Issue
Block a user