Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (#11233)

lolsob-rspec
Eugen Rochko 2019-07-02 00:59:53 +02:00 committed by GitHub
parent a55fd40802
commit 227d9297ba
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class ActivityPub::DeliveryWorker
end
def response_error_unsalvageable?(response)
(400...500).cover?(response.code) && ![401, 408, 429].include?(response.code)
response.code == 501 || ((400...500).cover?(response.code) && ![401, 408, 429].include?(response.code))
end
def failure_tracker