Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion registry/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package registry
import (
"context"
"net/url"
"strings"

"github.com/peterhellberg/link"
)
Expand All @@ -16,7 +17,13 @@ func (r *Registry) Catalog(ctx context.Context, u string) ([]string, error) {
if u == "" {
u = "/v2/_catalog"
}
uri := r.url(u)

var uri string
if strings.HasPrefix(u, "/") {
uri = r.url(u)
} else {
uri = u
}
r.Logf("registry.catalog url=%s", uri)

var response catalogResponse
Expand Down