single http client to rule them all
This commit is contained in:
parent
14ec19a3a6
commit
8a1314902b
2 changed files with 44 additions and 13 deletions
|
|
@ -227,7 +227,7 @@ func FeedListHandler(rw http.ResponseWriter, req *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
feed, sources, err := discoverFeed(form.Url, req.Header.Get("user-agent"))
|
||||
feed, sources, err := discoverFeed(form.Url)
|
||||
if err != nil {
|
||||
handler(req).log.Print(err)
|
||||
writeJSON(rw, map[string]string{"status": "notfound"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue