Fix some trivial problems (#34579)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-06-02 15:22:43 +00:00
1 parent d5bbaee64e
commit e8d8984f7c
8 files changed
+46 -12

No files matched your search

+1 -1
View File
@@ -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
}