mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Show correct User Agent in input placeholders
This commit is contained in:
parent
e589a35c67
commit
2cf9bde1af
15 changed files with 37 additions and 64 deletions
|
@ -12,7 +12,6 @@ import (
|
|||
|
||||
"miniflux.app/config"
|
||||
"miniflux.app/crypto"
|
||||
"miniflux.app/http/client"
|
||||
"miniflux.app/http/request"
|
||||
"miniflux.app/http/response"
|
||||
"miniflux.app/http/response/html"
|
||||
|
@ -46,7 +45,7 @@ func (h *handler) imageProxy(w http.ResponseWriter, r *http.Request) {
|
|||
html.ServerError(w, r, err)
|
||||
return
|
||||
}
|
||||
req.Header.Add("User-Agent", client.DefaultUserAgent)
|
||||
req.Header.Add("User-Agent", config.Opts.HTTPClientUserAgent())
|
||||
req.Header.Add("Connection", "close")
|
||||
|
||||
clt := &http.Client{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue