Skip to content

Commit

Permalink
fix(proxy): add missing headers in /v2 route
Browse files Browse the repository at this point in the history
  • Loading branch information
plaffitt committed Dec 8, 2023
1 parent e46f5f8 commit 7ce993e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/proxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ func (p *Proxy) Run() chan struct{} {

// https://distribution.github.io/distribution/spec/api/#api-version-check
func (p *Proxy) v2Endpoint(c *gin.Context) {
c.Header("Docker-Distribution-Api-Version", "registry/2.0")
c.Header("X-Content-Type-Options", "nosniff")
c.JSON(200, map[string]string{})
}

Expand Down

0 comments on commit 7ce993e

Please sign in to comment.