1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00

refactor(mediaproxy): use *url.URL for MEDIA_PROXY_CUSTOM_URL

Same behaviour as for HTTP_CLIENT_PROXY.
This commit is contained in:
gudvinr 2025-07-23 21:41:24 +03:00 committed by Frédéric Guillot
parent 40fa77851c
commit ce6cadc176
5 changed files with 17 additions and 33 deletions

View file

@ -1601,7 +1601,8 @@ func TestMediaProxyCustomURL(t *testing.T) {
}
expected := "http://example.org/proxy"
result := opts.MediaCustomProxyURL()
if result != expected {
if result == nil || result.String() != expected {
t.Fatalf(`Unexpected MEDIA_PROXY_CUSTOM_URL value, got %q instead of %q`, result, expected)
}
}