MediaProxy: fix query params test

Elixir and Erlang both add a traling = when encoding queries
This commit is contained in:
Phantasm 2025-09-27 14:30:22 +02:00
commit 1b438fd167
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -73,7 +73,7 @@ defmodule Pleroma.Web.MediaProxyTest do
end end
test "encodes and decodes URL and ignores query params for the path" do test "encodes and decodes URL and ignores query params for the path" do
url = "https://pleroma.soykaf.com/static/logo.png?93939393939&bunny=true" url = "https://pleroma.soykaf.com/static/logo.png?93939393939=&bunny=true"
encoded = MediaProxy.url(url) encoded = MediaProxy.url(url)
assert String.ends_with?(encoded, "/logo.png") assert String.ends_with?(encoded, "/logo.png")
assert decode_result(encoded) == url assert decode_result(encoded) == url