projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aa56a8
)
HttpSignature Plug: Skip if already valid.
author
lain
<lain@soykaf.club>
Thu, 15 Feb 2018 18:58:26 +0000
(19:58 +0100)
committer
lain
<lain@soykaf.club>
Thu, 15 Feb 2018 18:58:26 +0000
(19:58 +0100)
lib/pleroma/plugs/http_signature.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/http_signature.ex
b/lib/pleroma/plugs/http_signature.ex
index 17030cdbfcd594339bb87da602eb34ee30601262..b1e0d91a73c1322470a7c18db8ee2dce1c73ae01 100644
(file)
--- a/
lib/pleroma/plugs/http_signature.ex
+++ b/
lib/pleroma/plugs/http_signature.ex
@@
-6,6
+6,10
@@
defmodule Pleroma.Web.Plugs.HTTPSignaturePlug 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