mirror of
https://gitea.com/gitea/gitea-mirror.git
synced 2026-05-01 01:04:19 +00:00
Fix some trivial problems (#34579)
This commit is contained in:
@@ -721,7 +721,7 @@ func serveBlob(ctx *context.Context, pfd *packages_model.PackageFileDescriptor)
|
||||
if u != nil {
|
||||
headers.Status = http.StatusTemporaryRedirect
|
||||
headers.Location = u.String()
|
||||
|
||||
headers.ContentLength = 0 // do not set Content-Length for redirect responses
|
||||
setResponseHeaders(ctx.Resp, headers)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user