From 28d4e285f9c181700f56f3264858cd2f954a1386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Wed, 14 Apr 2021 11:11:09 +0800 Subject: [PATCH] Fix bug of ping registry (#14625) Fix bug of ping registry fixes #14610 Signed-off-by: Wenkai Yin --- src/server/v2.0/handler/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/v2.0/handler/registry.go b/src/server/v2.0/handler/registry.go index 1caceb40a..4a4556e49 100644 --- a/src/server/v2.0/handler/registry.go +++ b/src/server/v2.0/handler/registry.go @@ -219,7 +219,7 @@ func (r *registryAPI) PingRegistry(ctx context.Context, params operation.PingReg registry.Type = *params.Registry.Type } if params.Registry.URL != nil { - url, err := lib.ValidateHTTPURL(registry.URL) + url, err := lib.ValidateHTTPURL(*params.Registry.URL) if err != nil { return r.SendError(ctx, err) }