Handle 401s as I have observed it in the wild
This commit is contained in:
parent
f31b262aec
commit
c0532bcae0
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ defmodule Pleroma.Object.Fetcher do
|
|||
{:error, {:content_type, content_type}}
|
||||
end
|
||||
else
|
||||
{:ok, %{status: 403}} ->
|
||||
{:ok, %{status: code}} when code in [401, 403] ->
|
||||
{:error, :forbidden}
|
||||
|
||||
{:ok, %{status: code}} when code in [404, 410] ->
|
||||
|
|
Loading…
Reference in a new issue