Browse Source

Follow webfinger redirects.

tags/v0.9.9
Roger Braun 7 years ago
parent
commit
b104348fa5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/web/web_finger/web_finger.ex

+ 1
- 1
lib/pleroma/web/web_finger/web_finger.ex View File

@@ -92,7 +92,7 @@ defmodule Pleroma.Web.WebFinger do
response = with {:ok, result} <- getter.("https:" <> address, ["Accept": "application/xrd+xml"], [params: [resource: account]]) do
{:ok, result}
else _ ->
getter.("http:" <> address, ["Accept": "application/xrd+xml"], [params: [resource: account]])
getter.("http:" <> address, ["Accept": "application/xrd+xml"], [params: [resource: account], follow_redirect: true])
end

with {:ok, %{status_code: status_code, body: body}} when status_code in 200..299 <- response,


Loading…
Cancel
Save