Skip to content

Commit

Permalink
Fix blob head
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Jun 12, 2024
1 parent 38c749e commit 711b69b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ func (c *CRProxy) cacheBlobResponse(rw http.ResponseWriter, r *http.Request, inf
if r.Method == http.MethodHead {
rw.Header().Set("Content-Length", strconv.FormatInt(stat.Size(), 10))
rw.Header().Set("Content-Type", "application/octet-stream")
doneCache()
return
}
c.accumulativeLimit(rw, r, info, stat.Size())
Expand Down

0 comments on commit 711b69b

Please sign in to comment.