mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
routes: fix headers
This commit is contained in:
parent
9d4e8b4594
commit
bf5273e176
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const RoutePrefix = "/v2"
|
const RoutePrefix = "/v2"
|
||||||
|
const DistAPIVersion = "Docker-Distribution-API-Version"
|
||||||
const DistContentDigestKey = "Docker-Content-Digest"
|
const DistContentDigestKey = "Docker-Content-Digest"
|
||||||
const BlobUploadUUID = "Blob-Upload-UUID"
|
const BlobUploadUUID = "Blob-Upload-UUID"
|
||||||
|
|
||||||
|
@ -84,7 +85,8 @@ func (rh *RouteHandler) SetupRoutes() {
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {string} string "ok"
|
// @Success 200 {string} string "ok"
|
||||||
func (rh *RouteHandler) CheckVersionSupport(ginCtx *gin.Context) {
|
func (rh *RouteHandler) CheckVersionSupport(ginCtx *gin.Context) {
|
||||||
ginCtx.Data(http.StatusOK, "application/json; charset=utf-8", []byte{})
|
ginCtx.Data(http.StatusOK, "application/json", []byte{})
|
||||||
|
ginCtx.Header(DistAPIVersion, "registry/2.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
type ImageTags struct {
|
type ImageTags struct {
|
||||||
|
|
Loading…
Reference in a new issue