mirror of
https://github.com/goharbor/harbor
synced 2025-04-14 09:26:23 +00:00
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:
parent
dd90313c72
commit
06139c1396
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user