mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Allow HTTP 429 - Too Many Requests
Too Many requests is fine for testing link validity. The link is active, it's just been hit one too many times.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
require 'httparty'
|
||||
require 'ruby-progressbar'
|
||||
require 'uri'
|
||||
allowed_codes = [200, 302, 403]
|
||||
allowed_codes = [200, 302, 403, 429]
|
||||
args = ARGV
|
||||
filename = args[0]
|
||||
contents = File.open(filename, 'rb') { |f| f.read }
|
||||
|
||||
Reference in New Issue
Block a user