1
0
Fork 0
forked from mirrors/akkoma

Replace HTTPoison with Tesla for kocaptha

This commit is contained in:
Ekaterina Vaartis 2018-12-15 22:43:28 +03:00
parent e8537208bd
commit 8d55a549e6

View file

@ -8,7 +8,7 @@ defmodule Pleroma.Captcha.Kocaptcha do
def new() do
endpoint = Pleroma.Config.get!([__MODULE__, :endpoint])
case HTTPoison.get(endpoint <> "/new") do
case Tesla.get(endpoint <> "/new") do
{:error, _} ->
%{error: "Kocaptcha service unavailable"}