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

fix(mediaproxy): always forward the browser Accept header

Tumblr CDN is blocking the Accept header used to fetch feeds
This commit is contained in:
Frédéric Guillot 2025-08-18 18:02:54 -07:00
parent 9536ce7dbc
commit 953ea885e0
2 changed files with 32 additions and 14 deletions

View file

@ -88,6 +88,9 @@ func (h *handler) mediaProxy(w http.ResponseWriter, r *http.Request) {
requestBuilder := fetcher.NewRequestBuilder()
requestBuilder.WithTimeout(config.Opts.MediaProxyHTTPClientTimeout())
// Disable compression for the media proxy requests (not implemented).
requestBuilder.WithoutCompression()
if referer := rewrite.GetRefererForURL(mediaURL); referer != "" {
requestBuilder.WithHeader("Referer", referer)
}