Fix downloadFile()'s google proxy.

This commit is contained in:
Gucheng Wang 2022-06-29 22:01:38 +08:00
parent a0e11cc8a0
commit fe0ab0aa6f

View File

@ -76,7 +76,7 @@ func getProxyHttpClient() *http.Client {
} }
func GetHttpClient(url string) *http.Client { func GetHttpClient(url string) *http.Client {
if strings.Contains(url, "githubusercontent.com") { if strings.Contains(url, "githubusercontent.com") || strings.Contains(url, "googleusercontent.com") {
return ProxyHttpClient return ProxyHttpClient
} else { } else {
return DefaultHttpClient return DefaultHttpClient