fix format of list refresh query

This commit is contained in:
Umputun
2018-02-13 12:03:29 -06:00
parent e3b879d688
commit f83d908d99
+1 -1
View File
@@ -108,7 +108,7 @@ func main() {
srv.Cache = common.NewLoadingCache(4*time.Hour, 15*time.Minute, func() {
// set post-flush callback
for _, site := range opts.Sites {
resp, err := http.Get("http://localhost:8080/api/v1/list?" + site)
resp, err := http.Get("http://localhost:8080/api/v1/list?site=" + site)
if err != nil {
log.Printf("[WARN] failed to refresh cached list for %s, %s", site, err)
return