Remove a useless URI.encode call in MediaProxy

This commit is contained in:
href 2017-12-21 20:59:10 +01:00
parent 35ac549a99
commit 0ccd0e5cc9
No known key found for this signature in database
GPG key ID: EE8296C1A152C325

View file

@ -14,7 +14,6 @@ def remote(conn, %{"sig" => sig, "url" => url}) do
with \
true <- Keyword.get(config, :enabled, false),
{:ok, url} <- Pleroma.Web.MediaProxy.decode_url(sig, url),
url = URI.encode(url),
{:ok, content_type, body} <- proxy_request(url)
do
conn