mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Use custom feed user agent to fetch website icon
This commit is contained in:
parent
8329e9b46c
commit
2309b27458
3 changed files with 21 additions and 12 deletions
|
@ -60,6 +60,7 @@ func (h *handler) imageProxy(w http.ResponseWriter, r *http.Request) {
|
|||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
logger.Error(`[Proxy] code=%d url=%q`, resp.StatusCode, imageURL)
|
||||
html.NotFound(w, r)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue