proper marking of file as deleted
This commit is contained in:
@@ -110,7 +110,9 @@ func canFetchFirstByte(url string) bool {
|
||||
_, err := resp.Body.Read(buffer)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return false
|
||||
}
|
||||
// If server doesn't support partial content, try reading the first byte and immediately close
|
||||
buffer := make([]byte, 1)
|
||||
_, err = resp.Body.Read(buffer)
|
||||
|
||||
Reference in New Issue
Block a user