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.
This commit is contained in:
jbrw 2021-10-29 14:51:56 -04:00 committed by GitHub
parent ab374fff72
commit 978a005a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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