Skip to content

Commit

Permalink
Fix pagination for registry.access.redhat.com (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
NautiluX authored Jul 17, 2023
1 parent ec81f01 commit ccf0f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/registry/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccf0f7c

Please sign in to comment.