diff --git a/dri/download/download.go b/dri/download/download.go index 1ef1e19..4779a16 100644 --- a/dri/download/download.go +++ b/dri/download/download.go @@ -24,7 +24,11 @@ func Down(url, path, name string) bool { } defer out.Close() resp, err := http.Get(url) + if err!=nil{ + return false + } defer resp.Body.Close() + pix, err := ioutil.ReadAll(resp.Body) _, err = io.Copy(out, bytes.NewReader(pix)) if err != nil {