Skip to content

Commit a396065

Browse files
[blobserve] Allow a repo name with ':' in path prefix
Allows images like `myregistry.example.com:5000/myimage:mytag`
1 parent 924612d commit a396065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/blobserve/pkg/blobserve/blobserve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func NewServer(cfg Config, resolver ResolverProvider) (*Server, error) {
7575
// Serve serves the registry on the given port
7676
func (reg *Server) Serve() error {
7777
r := mux.NewRouter()
78-
r.PathPrefix(`/{repo:[a-zA-Z0-9\/\-\.]+}:{tag:[a-z0-9][a-z0-9-\.]+}`).MatcherFunc(isNoWebsocketRequest).HandlerFunc(reg.serve)
78+
r.PathPrefix(`/{repo:[a-zA-Z0-9\/\-\.\:]+}:{tag:[a-z0-9][a-z0-9-\.]+}`).MatcherFunc(isNoWebsocketRequest).HandlerFunc(reg.serve)
7979
r.NewRoute().HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
8080
log.WithField("path", req.URL.Path).Warn("unmapped request")
8181
http.Error(resp, http.StatusText(http.StatusNotFound), http.StatusNotFound)

0 commit comments

Comments
 (0)