mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
fix(conformance): OCI-Filters-Applied should return a literal (#1640)
* fix(conformance): OCI-Filters-Applied should return a literal https://github.com/opencontainers/distribution-spec/issues/448 Should only indicate what filter-type was applied and not what exact values it was filtered on. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * ci(conformance): point to temporary repo Revert this commit once upstream changes have been merged Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
46ee330b2a
commit
de24bd937f
+2
-1
@@ -624,7 +624,8 @@ func (rh *RouteHandler) GetReferrers(response http.ResponseWriter, request *http
|
||||
}
|
||||
|
||||
if len(artifactTypes) > 0 {
|
||||
response.Header().Set("OCI-Filters-Applied", strings.Join(artifactTypes, ","))
|
||||
// currently, the only filter supported and on this end-point
|
||||
response.Header().Set("OCI-Filters-Applied", "artifactType")
|
||||
}
|
||||
|
||||
zcommon.WriteData(response, http.StatusOK, ispec.MediaTypeImageIndex, out)
|
||||
|
||||
Reference in New Issue
Block a user