mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
FIX: Retry with GET request when HEAD fails with error 400
This commit is contained in:
parent
56bacb1c2f
commit
4a54c09e46
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue