增加跨域配置,以及增加配置说明
This commit is contained in:
@@ -24,7 +24,7 @@ func Down(url, path, name string) bool {
|
||||
}
|
||||
defer out.Close()
|
||||
resp, err := http.Get(url)
|
||||
if err!=nil{
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
Reference in New Issue
Block a user