add chunk file helper to support large file

This commit is contained in:
tnextday
2015-11-29 23:49:41 +08:00
parent a4f64c0116
commit 1817864a45
4 changed files with 137 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
return
}
// process mulitple ranges
// process multiple ranges
for _, ra := range ranges {
if ra.start > size {
http.Error(w, "Out of Range", http.StatusRequestedRangeNotSatisfiable)