From 1435ec7c7717a147fb17701fd0da3992f7a44bb6 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 13 Mar 2025 12:05:15 -0600 Subject: [PATCH] Update pkg/registry/fallback.go Signed-off-by: Terry Howe --- pkg/registry/fallback.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/registry/fallback.go b/pkg/registry/fallback.go index 4e6440118..6540e15ef 100644 --- a/pkg/registry/fallback.go +++ b/pkg/registry/fallback.go @@ -58,6 +58,8 @@ func (t *fallbackTransport) RoundTrip(req *http.Request) (*http.Response, error) return t.Base.RoundTrip(req) } resp, err := t.Base.RoundTrip(req) + // We are falling back to http here for backward compatibility with Helm v3. + // ORAS v1 provided fallback automatically, but ORAS v2 does not. if err != nil && req.URL.Scheme == "https" { if tlsErr, ok := err.(tls.RecordHeaderError); ok { if string(tlsErr.RecordHeader[:]) == "HTTP/" {