Parse http signature for request to objects/activities

This commit is contained in:
rinpatch 2019-09-12 22:40:53 +03:00
commit b0e6058021
2 changed files with 4 additions and 1 deletions

View file

@ -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