From 978a005a42db9dcc9e485ce157a2e8870c0ef1e9 Mon Sep 17 00:00:00 2001 From: jbrw Date: Fri, 29 Oct 2021 14:51:56 -0400 Subject: [PATCH] FIX: resolve responses of 103 should be retried using small_get (#14773) If the initial `get`/`head` response within `resolve` returns a status code of `103`, attempt to fetch the same URL with the alternative `small_get` method. --- 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 e3805479c83..6ab994fb83f 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -239,7 +239,7 @@ class FinalDestination @content_type = response.headers['Content-Type'] if response.headers.has_key?('Content-Type') @status = :resolved return @uri - when 400, 405, 406, 409, 500, 501 + when 103, 400, 405, 406, 409, 500, 501 response_status, small_headers = small_get(request_headers) if response_status == 200