Skip to content

Commit

Permalink
fix newSize type
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 26, 2024
1 parent 037e700 commit f07b9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func (cr *Cluster) handleDownloadOSS(rw http.ResponseWriter, req *http.Request,
rg := req.Header.Get("Range")
rgs, err := gosrc.ParseRange(rg, size)
if err == nil && len(rgs) > 0 {
newSize := 0
var newSize int64 = 0
for _, r := range rgs {
newSize += r.Length
}
Expand Down

0 comments on commit f07b9f4

Please sign in to comment.