From aebcd56300b9102ca0e4fc9106f4e13d2bb96109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= <regis@hanol.fr> Date: Fri, 17 Nov 2017 16:59:51 +0100 Subject: [PATCH] FIX: try a GET for error code 406 --- lib/final_destination.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/final_destination.rb b/lib/final_destination.rb index 8923257d78c..aa5384c660a 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -124,7 +124,7 @@ class FinalDestination when 200 @status = :resolved return @uri - when 405, 409, 501 + when 405, 406, 409, 501 get_response = small_get(headers) response_status = get_response.code.to_i