X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fwebsub%2Fwebsub.ex;h=a5309ebd99428fee662b07a9b98e17633e487346;hb=6a184115a2431727b5039c1c726a8afc5eef228c;hp=410303b7708620a5941c9b67ea69081ef04f2909;hpb=42633406b333b26e5b364cdd2c93899a0d6d0bad;p=akkoma diff --git a/lib/pleroma/web/websub/websub.ex b/lib/pleroma/web/websub/websub.ex index 410303b77..a5309ebd9 100644 --- a/lib/pleroma/web/websub/websub.ex +++ b/lib/pleroma/web/websub/websub.ex @@ -54,9 +54,9 @@ defmodule Pleroma.Web.Websub do Task.start(fn -> with {:ok, %{status_code: code}} <- @httpoison.post(sub.callback, response, [ - {"Content-Type", "application/atom+xml"}, - {"X-Hub-Signature", "sha1=#{signature}"} - ]) do + {"Content-Type", "application/atom+xml"}, + {"X-Hub-Signature", "sha1=#{signature}"} + ], timeout: 10000, recv_timeout: 20000) do Logger.debug(fn -> "Pushed to #{sub.callback}, code #{code}" end) else e -> Logger.debug(fn -> "Couldn't push to #{sub.callback}, #{inspect(e)}" end)