Skip to content

Commit

Permalink
change Referrers Content-Type to application/vnd.oci.image.index.v1+json
Browse files Browse the repository at this point in the history
Signed-off-by: yminer <yminer@vmware.com>
  • Loading branch information
MinerYang authored and chlins committed Aug 24, 2023
1 parent 298ecbb commit a4fce15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/registry/referrers.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (o *listReferrersOK) WithPayload(payload interface{}) *listReferrersOK {

// WriteResponse to the client
func (o *listReferrersOK) WriteResponse(rw http.ResponseWriter) {
rw.Header().Set("Content-Type", "application/json; charset=utf-8")
rw.Header().Set("Content-Type", "application/vnd.oci.image.index.v1+json")

link := o.Link
if link != "" {
Expand Down

0 comments on commit a4fce15

Please sign in to comment.