activitypub controller: note that the HTTP Host header must be forwarded for http signature validation to work

This commit is contained in:
William Pitcock 2018-05-21 19:19:40 +00:00
parent d269c69a0b
commit 9a2d097ed8
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ def inbox(conn, params) do
Logger.info("Signature not from author, relayed message, fetching from source") Logger.info("Signature not from author, relayed message, fetching from source")
ActivityPub.fetch_object_from_id(params["object"]["id"]) ActivityPub.fetch_object_from_id(params["object"]["id"])
else else
Logger.info("Signature error") Logger.info("Signature error - make sure you are forwarding the HTTP Host header!")
Logger.info("Could not validate #{params["actor"]}") Logger.info("Could not validate #{params["actor"]}")
Logger.info(inspect(conn.req_headers)) Logger.info(inspect(conn.req_headers))
end end