aboutsummaryrefslogtreecommitdiff
path: root/proxy/proxy.go
diff options
context:
space:
mode:
authorGravatar Romain de Laage <romain.delaage@rdelaage.ovh> 2023-02-25 09:36:19 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-02-25 15:57:59 -0800
commit2c2700a31d7349f67016a3786125597f9ee38c56 (patch)
tree9a9cef0c5d6a17946be70e709cf1d0349d05bc77 /proxy/proxy.go
parent8f9ccc6540be9d637b812985936f064bada8fcf3 (diff)
downloadv2-2c2700a31d7349f67016a3786125597f9ee38c56.tar.gz
v2-2c2700a31d7349f67016a3786125597f9ee38c56.tar.zst
v2-2c2700a31d7349f67016a3786125597f9ee38c56.zip
Proxy support for several media types
closes #615 closes #635
Diffstat (limited to 'proxy/proxy.go')
-rw-r--r--proxy/proxy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/proxy.go b/proxy/proxy.go
index 21e9b2e4..1fe9eceb 100644
--- a/proxy/proxy.go
+++ b/proxy/proxy.go
@@ -21,7 +21,7 @@ import (
// ProxifyURL generates a relative URL for a proxified resource.
func ProxifyURL(router *mux.Router, link string) string {
if link != "" {
- proxyImageUrl := config.Opts.ProxyImageUrl()
+ proxyImageUrl := config.Opts.ProxyUrl()
if proxyImageUrl == "" {
mac := hmac.New(sha256.New, config.Opts.ProxyPrivateKey())
@@ -44,7 +44,7 @@ func ProxifyURL(router *mux.Router, link string) string {
// AbsoluteProxifyURL generates an absolute URL for a proxified resource.
func AbsoluteProxifyURL(router *mux.Router, host, link string) string {
if link != "" {
- proxyImageUrl := config.Opts.ProxyImageUrl()
+ proxyImageUrl := config.Opts.ProxyUrl()
if proxyImageUrl == "" {
mac := hmac.New(sha256.New, config.Opts.ProxyPrivateKey())