From 02a92efba8ef441c771e4493341a278f05e87fda Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Sun, 13 Aug 2023 22:27:55 +0100 Subject: [PATCH] Drop docker prefix from storage driver API user agent Signed-off-by: Milos Gajdos --- registry/handlers/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index 4567f27c0..080b39b43 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -118,7 +118,7 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App { if storageParams == nil { storageParams = make(configuration.Parameters) } - storageParams["useragent"] = fmt.Sprintf("docker-distribution/%s %s", version.Version, runtime.Version()) + storageParams["useragent"] = fmt.Sprintf("distribution/%s %s", version.Version, runtime.Version()) var err error app.driver, err = factory.Create(config.Storage.Type(), storageParams)