瀏覽代碼

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.
pull/387/head
Dave Machado 7 年之前
committed by GitHub
父節點
當前提交
1b9ab3649b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      build/validate_links.rb

+ 1
- 1
build/validate_links.rb 查看文件

@@ -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 }


Loading…
取消
儲存