diff options
author | kaniini <ariadne@dereferenced.org> | 2019-07-28 20:25:35 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-28 20:25:35 +0000 |
commit | 488c06b6f5d09111733c208bd1187b91297aa9ab (patch) | |
tree | 9c3188bffc1c9dd65c067923cf65653d6d9fa3c2 /lib | |
parent | f78390ffdf206cc2a1c7fe3c0b9ad67cd608ce00 (diff) | |
parent | 961e7785314688b9e2445649c71e12023a982165 (diff) | |
download | pleroma-488c06b6f5d09111733c208bd1187b91297aa9ab.tar.gz |
Merge branch 'develop' into 'develop'
Fix HTTP sig tweak on KeyId
See merge request pleroma/pleroma!1496
Diffstat (limited to 'lib')
-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 |