correct pool and uniform headers format

This commit is contained in:
Alexander Strizhakov 2020-09-02 09:16:51 +03:00
commit 79f65b4374
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 14 additions and 10 deletions

View file

@ -150,7 +150,9 @@ defmodule Pleroma.Instances.Instance do
defp scrape_favicon(%URI{} = instance_uri) do
try do
with {:ok, %Tesla.Env{body: html}} <-
Pleroma.HTTP.get(to_string(instance_uri), [{:Accept, "text/html"}]),
Pleroma.HTTP.get(to_string(instance_uri), [{"accept", "text/html"}],
adapter: [pool: :media]
),
favicon_rel <-
html
|> Floki.parse_document!()