mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-16 11:51:47 +01: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