Skip to content

Commit 4481685

Browse files
committed
Allow references to be redirects
1 parent 5cb3b0f commit 4481685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/references.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace :references do
1313
references.to_set.each do |reference|
1414
failure = begin
1515
response = Net::HTTP.get_response(reference)
16-
response.code if response.code != '200'
16+
response.code unless response.is_a?(Net::HTTPSuccess) || response.is_a?(Net::HTTPRedirection)
1717
rescue StandardError => e
1818
e
1919
end

0 commit comments

Comments
 (0)