mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 20:29:24 +08:00
tmp commit
This commit is contained in:
@@ -83,6 +83,7 @@ func Head(url string) (http.Header, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer r.Body.Close()
|
||||
if r.StatusCode >= 400 {
|
||||
return nil, fmt.Errorf("%s: %s", url, r.Status)
|
||||
}
|
||||
|
Reference in New Issue
Block a user