HttpSignature Plug: Skip if already valid.

This commit is contained in:
lain 2018-02-15 19:58:26 +01:00
parent 0aa56a853b
commit 38b61fddfe

View file

@ -6,6 +6,10 @@ def init(options) do
options
end
def call(%{assigns: %{valid_signature: true}} = conn, opts) do
conn
end
def call(conn, opts) do
if get_req_header(conn, "signature") do
conn = conn