From 266097597c5505076914de5c79d7fb5610f7b1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Fri, 12 Jan 2024 14:20:16 +0300 Subject: [PATCH] put back the old upload path base --- drivers/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/helpers.go b/drivers/helpers.go index 8f27cf2..eeb9339 100644 --- a/drivers/helpers.go +++ b/drivers/helpers.go @@ -8,12 +8,12 @@ import ( "github.com/forta-network/disco/drivers/multidriver" ) -// FixUploadPath rewrites .../repository//_uploads to /disco-uploads to make things easier. +// FixUploadPath rewrites .../repository//_uploads to another path to make things easier. func FixUploadPath(path string) string { if !strings.Contains(path, "/_uploads") { return path } - newPath := "/disco-uploads" + newPath := "/docker/registry/v2/uploads" var append bool // append the segments after "_uploads" for _, segment := range strings.Split(path, "/") {