pull/34726/head
wxiaoguang 2025-06-15 10:34:26 +08:00
parent b39f7a37d1
commit 0a16372ba9
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func setResponseHeaders(resp http.ResponseWriter, h *containerHeaders) {
if h.Location != "" {
resp.Header().Set("Location", h.Location)
}
if h.Range != "" {
if h.Range != "" && h.Range != "0--1" { // a quick fix for backport, see https://github.com/go-gitea/gitea/pull/34725
resp.Header().Set("Range", h.Range)
}
if h.ContentType != "" {