diff options
author | Thomas Sileo <t@a4.io> | 2019-07-28 14:17:56 +0200 |
---|---|---|
committer | Thomas Sileo <t@a4.io> | 2019-07-28 14:17:56 +0200 |
commit | 961e7785314688b9e2445649c71e12023a982165 (patch) | |
tree | 8b80e72cea1200b65a48b921c832f12c33b9cdd4 | |
parent | 08960d50169eaeb9cce4671915a550d76be690df (diff) | |
download | pleroma-961e7785314688b9e2445649c71e12023a982165.tar.gz |
Fix HTTP sig tweak on KeyId
-rw-r--r-- | lib/pleroma/signature.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/signature.ex b/lib/pleroma/signature.ex index 0bf49fd7c..15bf3c317 100644 --- a/lib/pleroma/signature.ex +++ b/lib/pleroma/signature.ex @@ -15,7 +15,7 @@ defmodule Pleroma.Signature do |> Map.put(:fragment, nil) uri = - if String.ends_with?(uri.path, "/publickey") do + if not is_nil(uri.path) and String.ends_with?(uri.path, "/publickey") do Map.put(uri, :path, String.replace(uri.path, "/publickey", "")) else uri |