mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
HttpSignature Plug: Skip if already valid.
This commit is contained in:
parent
0aa56a853b
commit
38b61fddfe
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
|
||||||
options
|
options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def call(%{assigns: %{valid_signature: true}} = conn, opts) do
|
||||||
|
conn
|
||||||
|
end
|
||||||
|
|
||||||
def call(conn, opts) do
|
def call(conn, opts) do
|
||||||
if get_req_header(conn, "signature") do
|
if get_req_header(conn, "signature") do
|
||||||
conn = conn
|
conn = conn
|
||||||
|
|
Loading…
Reference in a new issue