From: lain Date: Sun, 25 Feb 2018 19:15:04 +0000 (+0100) Subject: Fix signing bug. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5ea6d96dbe37d7ded83a2ca52714fe9b33e44c67;p=akkoma Fix signing bug. --- diff --git a/lib/pleroma/plugs/http_signature.ex b/lib/pleroma/plugs/http_signature.ex index 9236c501c..d2d4bdd63 100644 --- a/lib/pleroma/plugs/http_signature.ex +++ b/lib/pleroma/plugs/http_signature.ex @@ -16,7 +16,7 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do Logger.debug("Checking sig for #{user}") if get_req_header(conn, "signature") do conn = conn - |> put_req_header("(request-target)", String.downcase("#{conn.method} #{conn.request_path}")) + |> put_req_header("(request-target)", String.downcase("#{conn.method}") <> " #{conn.request_path}") assign(conn, :valid_signature, HTTPSignatures.validate_conn(conn)) else