mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Fix signing bug.
This commit is contained in:
parent
f61fd00db5
commit
5ea6d96dbe
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
|
||||||
Logger.debug("Checking sig for #{user}")
|
Logger.debug("Checking sig for #{user}")
|
||||||
if get_req_header(conn, "signature") do
|
if get_req_header(conn, "signature") do
|
||||||
conn = conn
|
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))
|
assign(conn, :valid_signature, HTTPSignatures.validate_conn(conn))
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue