change Referrers Content-Type to application/vnd.oci.image.index.v1+json (#19212)

Signed-off-by: yminer <yminer@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
MinerYang 2023-08-25 11:54:55 +08:00 committed by GitHub
parent dd90313c72
commit 06139c1396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 != "" {