Parse http signature for request to objects/activities
This commit is contained in:
parent
dabc4a00f5
commit
b0e6058021
2 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
|
|||
end
|
||||
|
||||
def call(conn, _opts) do
|
||||
[signature | _] = get_req_header(conn, "signature")
|
||||
headers = get_req_header(conn, "signature")
|
||||
signature = Enum.at(headers, 0)
|
||||
|
||||
if signature do
|
||||
# set (request-target) header to the appropriate value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue