mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Fix downloadFile()'s google proxy.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user