aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-03 20:06:20 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-03 20:06:20 +0200
commit97257c692c5786b370d8f0769533d11c1d00334e (patch)
tree3305640c8b55ebf47b904a9b5d35e5584fbec14c /lib
parent1077c5c58d13325cd61893c609cad6505ad1d32e (diff)
downloadpleroma-97257c692c5786b370d8f0769533d11c1d00334e.tar.gz
Fix specs.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/websub/websub_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/websub/websub_controller.ex b/lib/pleroma/web/websub/websub_controller.ex
index e5ecf6523..e860ec9e5 100644
--- a/lib/pleroma/web/websub/websub_controller.ex
+++ b/lib/pleroma/web/websub/websub_controller.ex
@@ -34,7 +34,7 @@ defmodule Pleroma.Web.Websub.WebsubController do
def websub_incoming(conn, %{"id" => id}) do
with "sha1=" <> signature <- hd(get_req_header(conn, "x-hub-signature")),
- signature <- String.upcase(signature),
+ signature <- String.downcase(signature),
%WebsubClientSubscription{} = websub <- Repo.get(WebsubClientSubscription, id),
{:ok, body, _conn} = read_body(conn),
^signature <- Websub.sign(websub.secret, body) do