projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc68d3
)
More logging.
author
lain
<lain@soykaf.club>
Thu, 22 Feb 2018 13:57:35 +0000
(14:57 +0100)
committer
lain
<lain@soykaf.club>
Thu, 22 Feb 2018 13:57:35 +0000
(14:57 +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 b1e0d91a73c1322470a7c18db8ee2dce1c73ae01..7f40a20c0b62e0f30dcfd7098c94720d95b95e44 100644
(file)
--- a/
lib/pleroma/plugs/http_signature.ex
+++ b/
lib/pleroma/plugs/http_signature.ex
@@
-1,6
+1,7
@@
defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
alias Pleroma.Web.HTTPSignatures
import Plug.Conn
+ require Logger
def init(options) do
options
@@
-11,6
+12,8
@@
defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
end
def call(conn, opts) do
+ user = conn.params["actor"]
+ Logger.debug("Checking sig for #{user}")
if get_req_header(conn, "signature") do
conn = conn
|> put_req_header("(request-target)", String.downcase("#{conn.method} #{conn.request_path}"))