0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

Merge pull request #2 from rchincha/master

routes: fix headers
This commit is contained in:
Ravi Chamarthy 2019-06-26 11:36:51 -07:00 committed by GitHub
commit da493d0fe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ import (
)
const RoutePrefix = "/v2"
const DistAPIVersion = "Docker-Distribution-API-Version"
const DistContentDigestKey = "Docker-Content-Digest"
const BlobUploadUUID = "Blob-Upload-UUID"
@ -84,7 +85,8 @@ func (rh *RouteHandler) SetupRoutes() {
// @Produce json
// @Success 200 {string} string "ok"
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 {