1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-02 16:38:37 +00:00

reader/fetcher: add brotli content encoding support

This commit is contained in:
Frédéric Guillot 2024-04-18 21:44:55 -07:00
parent 647c66e70a
commit 771f9d2b5f
5 changed files with 80 additions and 2 deletions

View file

@ -169,6 +169,7 @@ func (r *RequestBuilder) ExecuteRequest(requestURL string) (*http.Response, erro
}
req.Header = r.headers
req.Header.Set("Accept-Encoding", "br, gzip")
req.Header.Set("Accept", defaultAcceptHeader)
req.Header.Set("Connection", "close")