Commit 5ea6d96d authored by lambda's avatar lambda

Fix signing bug.

parent f61fd00d
Pipeline #845 failed with stage
in 2 minutes and 4 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment