Skip to content
Snippets Groups Projects
Commit 59d4cc60 authored by lain's avatar lain
Browse files

normalize hex number.

parent 1422e7aa
Branches
No related tags found
No related merge requests found
......@@ -34,6 +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),
%WebsubClientSubscription{} = websub <- Repo.get(WebsubClientSubscription, id),
{:ok, body, _conn} = read_body(conn),
^signature <- Websub.sign(websub.secret, body) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment