From 3668d10664ae3e8c62fbd315ba5c165078b43fd6 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 29 Jun 2021 02:13:29 -0700 Subject: [PATCH] range query for mp4 video play fix https://github.com/chrislusf/seaweedfs/issues/2156 --- weed/server/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/server/common.go b/weed/server/common.go index 2e0ae4058..2cd2276eb 100644 --- a/weed/server/common.go +++ b/weed/server/common.go @@ -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)