aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/http/tzdata.ex
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2020-09-08 11:26:12 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2020-09-08 11:26:12 +0000
commita08196ca680554315e088e9ea4191f292bbe2642 (patch)
treee38dad4a9fd0d566859755aec6c40f4f3a62fd2d /lib/pleroma/http/tzdata.ex
parent6a567a131ec04dbeb71012f2caeebf563ed453a4 (diff)
parentd34dc4a7469b97e28ca4fffc8b2387c937ab56d8 (diff)
downloadpleroma-fix/disable-favicons-in-tests.tar.gz
Merge branch 'develop' into 'fix/disable-favicons-in-tests'fix/disable-favicons-in-tests
# Conflicts: # config/test.exs
Diffstat (limited to 'lib/pleroma/http/tzdata.ex')
-rw-r--r--lib/pleroma/http/tzdata.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/http/tzdata.ex b/lib/pleroma/http/tzdata.ex
index 4539ac359..09cfdadf7 100644
--- a/lib/pleroma/http/tzdata.ex
+++ b/lib/pleroma/http/tzdata.ex
@@ -11,7 +11,7 @@ defmodule Pleroma.HTTP.Tzdata do
@impl true
def get(url, headers, options) do
- options = Keyword.put_new(options, :adapter, pool: :default)
+ options = Keyword.put_new(options, :pool, :default)
with {:ok, %Tesla.Env{} = env} <- HTTP.get(url, headers, options) do
{:ok, {env.status, env.headers, env.body}}
@@ -20,7 +20,7 @@ defmodule Pleroma.HTTP.Tzdata do
@impl true
def head(url, headers, options) do
- options = Keyword.put_new(options, :adapter, pool: :default)
+ options = Keyword.put_new(options, :pool, :default)
with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do
{:ok, {env.status, env.headers}}