projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Feed provider only generates a redirect, so always activate it.
[akkoma]
/
lib
/
pleroma
/
http
/
tzdata.ex
diff --git
a/lib/pleroma/http/tzdata.ex
b/lib/pleroma/http/tzdata.ex
index 34bb253a7ec9741637c83c0d253fdc5a6f0a73a6..09cfdadf7c8ca62d25b8be22b0928e365848c688 100644
(file)
--- a/
lib/pleroma/http/tzdata.ex
+++ b/
lib/pleroma/http/tzdata.ex
@@
-11,6
+11,8
@@
defmodule Pleroma.HTTP.Tzdata do
@impl true
def get(url, headers, options) do
@impl true
def get(url, headers, options) do
+ 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}}
end
with {:ok, %Tesla.Env{} = env} <- HTTP.get(url, headers, options) do
{:ok, {env.status, env.headers, env.body}}
end
@@
-18,6
+20,8
@@
defmodule Pleroma.HTTP.Tzdata do
@impl true
def head(url, headers, options) do
@impl true
def head(url, headers, options) do
+ options = Keyword.put_new(options, :pool, :default)
+
with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do
{:ok, {env.status, env.headers}}
end
with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do
{:ok, {env.status, env.headers}}
end