summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-09-16 00:06:53 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-09-16 00:06:53 -0400
commit055e429966501191deecebda63148fd1cc959f54 (patch)
tree46d0e058380e9efbe1e010fa130e5e0c109be14f
parentchange structure of Polyjuice.Client process tree (diff)
encode filename in URL
-rw-r--r--lib/polyjuice/client/endpoint/get_media_download.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/polyjuice/client/endpoint/get_media_download.ex b/lib/polyjuice/client/endpoint/get_media_download.ex
index af0979c..2a00e86 100644
--- a/lib/polyjuice/client/endpoint/get_media_download.ex
+++ b/lib/polyjuice/client/endpoint/get_media_download.ex
@@ -66,7 +66,7 @@ defmodule Polyjuice.Client.Endpoint.GetMediaDownload do
mxc_url
end
- filename_part = if is_binary(filename), do: "/" <> filename, else: ""
+ filename_part = if is_binary(filename), do: "/" <> e.(filename), else: ""
url = %{
URI.merge(