Fix specs.

This commit is contained in:
Roger Braun 2017-05-03 20:06:20 +02:00
commit 97257c692c
3 changed files with 3 additions and 3 deletions

View file

@ -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