mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
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:
parent
ab374fff72
commit
978a005a42
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user