Skip to content

Commit

Permalink
Use valid_response_codes
Browse files Browse the repository at this point in the history
  • Loading branch information
0n1shi committed Oct 13, 2023
1 parent 99fca11 commit 2c1eb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/finders/db_exports/known_locations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def valid_response_codes
def aggressive(opts = {})
found = []

enumerate(potential_urls(opts), opts.merge(check_full_response: [200, 206])) do |res|
enumerate(potential_urls(opts), opts.merge(check_full_response: valid_response_codes)) do |res|
if res.effective_url.end_with?('.zip')
next unless %r{\Aapplication/zip}i.match?(res.headers['Content-Type'])
else
Expand Down

0 comments on commit 2c1eb27

Please sign in to comment.