|
|
@ -280,6 +280,7 @@ func processRangeRequest(r *http.Request, w http.ResponseWriter, totalSize int64 |
|
|
|
w.Header().Set("Content-Length", strconv.FormatInt(ra.length, 10)) |
|
|
|
w.Header().Set("Content-Range", ra.contentRange(totalSize)) |
|
|
|
|
|
|
|
w.WriteHeader(http.StatusPartialContent) |
|
|
|
err = writeFn(w, ra.start, ra.length) |
|
|
|
if err != nil { |
|
|
|
http.Error(w, err.Error(), http.StatusInternalServerError) |
|
|
|
xxxxxxxxxx