From 5ea6d96dbe37d7ded83a2ca52714fe9b33e44c67 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 25 Feb 2018 20:15:04 +0100 Subject: [PATCH] Fix signing bug. --- lib/pleroma/plugs/http_signature.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2