Skip to content

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.rb
index 00e93b90a98..e85aff8c01e 100644
--- a/lib/final_destination.rb
+++ b/lib/final_destination.rb
@@ -168,7 +168,7 @@ class FinalDestination
when 200
@status = :resolved
return @uri
- when 405, 406, 409, 501
+ when 400, 405, 406, 409, 501
get_response = small_get(request_headers)
response_status = get_response.code.to_i