summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/media_proxy_test.exs7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/media_proxy_test.exs b/test/media_proxy_test.exs
index b23aeb88b..cd1cbd202 100644
--- a/test/media_proxy_test.exs
+++ b/test/media_proxy_test.exs
@@ -70,9 +70,12 @@ defmodule Pleroma.MediaProxyTest do
assert decode_result(encoded) == url
end
- test "ensures urls are url-encoded" do
+ # Some of the signed url expect the special character in the url to be same
+ # for the proxy to work.
+ # Issue https://git.pleroma.social/pleroma/pleroma/issues/1055
+ test "ensures urls are maintained (character are not encoded or decoded)" do
assert decode_result(url("https://pleroma.social/Hello world.jpg")) ==
- "https://pleroma.social/Hello%20world.jpg"
+ "https://pleroma.social/Hello world.jpg"
assert decode_result(url("https://pleroma.social/Hello%20world.jpg")) ==
"https://pleroma.social/Hello%20world.jpg"