Commit 27576828 authored by lain's avatar lain
Browse files

More logging.

parent 5dc68d30
Pipeline #800 failed with stage
in 3 minutes and 8 seconds
defmodule Pleroma.Web.Plugs.HTTPSignaturePlug do
alias Pleroma.Web.HTTPSignatures
import Plug.Conn
require Logger
def init(options) do
......@@ -11,6 +12,8 @@ def call(%{assigns: %{valid_signature: true}} = conn, opts) do
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}"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment