mirror of
https://github.com/goharbor/harbor
synced 2025-04-15 21:43:40 +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
|
// WriteResponse to the client
|
||||||
func (o *listReferrersOK) WriteResponse(rw http.ResponseWriter) {
|
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
|
link := o.Link
|
||||||
if link != "" {
|
if link != "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user