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:
parent
9536ce7dbc
commit
953ea885e0
2 changed files with 32 additions and 14 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue