This commit is contained in:
chrislu committed 2022-08-31 00:24:29 -07:00
1 parent 870a30665b
commit 3d8b8ffced
2 files changed
+3 -17

No files matched your search

+1 -4
View File
@@ -106,10 +106,7 @@ func readChunkNeedle(fileUrl string, w io.Writer, offset int64, jwt string) (wri
if err != nil {
return written, err
}
defer func() {
io.Copy(io.Discard, resp.Body)
resp.Body.Close()
}()
defer util.CloseResponse(resp)
switch resp.StatusCode {
case http.StatusRequestedRangeNotSatisfiable: