A platform for community discussion. Free, open, simple.
FIX: Retry with GET request when HEAD fails with error 400
Gerhard Schlager4a54c09e4619
diff --git a/lib/final_destination.rb b/lib/final_destination.rbindex 00e93b90a98..e85aff8c01e 100644--- a/lib/final_destination.rb+++ b/lib/final_destination.rb@@ -168,7 +168,7 @@ class FinalDestinationwhen 200@status = :resolvedreturn @uri- when 405, 406, 409, 501+ when 400, 405, 406, 409, 501get_response = small_get(request_headers)response_status = get_response.code.to_i