Skip to content

Commit

Permalink
Set blob content type to disable detection
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba committed Jul 27, 2024
1 parent e030842 commit 4b6904c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ func (r *Registry) handleBlob(rw mux.ResponseWriter, req *http.Request, ref refe
rw.WriteError(http.StatusInternalServerError, fmt.Errorf("could not determine size of blob with digest %s: %w", ref.dgst.String(), err))
return
}
rw.Header().Set("Content-Type", "application/octet-stream")
rw.Header().Set("Content-Length", strconv.FormatInt(size, 10))
rw.Header().Set("Docker-Content-Digest", ref.dgst.String())
if req.Method == http.MethodHead {
Expand Down

0 comments on commit 4b6904c

Please sign in to comment.