mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:38:17 +08:00
FIX: Retry with GET request when HEAD fails with error 400
This commit is contained in:
parent
56bacb1c2f
commit
4a54c09e46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user