From ccf0f7c353d91f6ca39f0539606e36b1f77a55d1 Mon Sep 17 00:00:00 2001 From: Manuel Dewald Date: Mon, 17 Jul 2023 13:20:52 +0200 Subject: [PATCH] Fix pagination for registry.access.redhat.com (#92) --- lib/registry/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/registry/registry.rb b/lib/registry/registry.rb index 88ca908..edbbffe 100644 --- a/lib/registry/registry.rb +++ b/lib/registry/registry.rb @@ -252,7 +252,7 @@ def last(header) links = parse_link_header(header) if links[:next] query = URI(links[:next]).query - link_key = @uri.host.eql?('quay.io') ? 'next_page' : 'last' + link_key = @uri.host.eql?('quay.io') || @uri.host.eql?('registry.access.redhat.com') ? 'next_page' : 'last' last = URI.decode_www_form(query).to_h[link_key] end