mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
11 lines
206 B
Go
11 lines
206 B
Go
package tools
|
|
|
|
import "net/http"
|
|
|
|
func HttpGetWithPreference(c *http.Client, url string) (resp *http.Response, err error) {
|
|
if resp, err = c.Get(url); err != nil {
|
|
resp, err = http.Get(url)
|
|
}
|
|
return
|
|
}
|