mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix downloadFile()'s google proxy.
This commit is contained in:
parent
a0e11cc8a0
commit
fe0ab0aa6f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user