From 89c51e157d5c331540fc8be44bf1cae2c092cad9 Mon Sep 17 00:00:00 2001 From: Josh Owen Date: Wed, 1 Oct 2025 17:51:51 +1000 Subject: [PATCH] Allowed empty scope in tokenProxyHandler --- main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.go b/main.go index 56e93e2..bf18274 100644 --- a/main.go +++ b/main.go @@ -148,9 +148,6 @@ func tokenProxyHandler(tokenEndpoint, repoPrefix string) http.HandlerFunc { q := r.URL.Query() scope := q.Get("scope") - if scope == "" { - return - } newScope := strings.Replace(scope, "repository:", fmt.Sprintf("repository:%s/", repoPrefix), 1) q.Set("scope", newScope) u, _ := url.Parse(tokenEndpoint)