projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable rendering of the client application data details
[akkoma]
/
lib
/
pleroma
/
http
/
tzdata.ex
diff --git
a/lib/pleroma/http/tzdata.ex
b/lib/pleroma/http/tzdata.ex
index 356799aabe7bc64d44b308ddec8cd6cdb642b03b..77e1b537eb1f5ef4c88f429efd469e0d6a055f28 100644
(file)
--- a/
lib/pleroma/http/tzdata.ex
+++ b/
lib/pleroma/http/tzdata.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.HTTP.Tzdata do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.HTTP.Tzdata do
@@
-11,7
+11,7
@@
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, :
adapter, pool: :upload
)
+ 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}}
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
@impl true
def head(url, headers, options) do
- options = Keyword.put_new(options, :
adapter, pool: :upload
)
+ options = Keyword.put_new(options, :
pool, :default
)
with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do
{:ok, {env.status, env.headers}}
with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do
{:ok, {env.status, env.headers}}