1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00
This commit is contained in:
hellerve 2016-12-13 11:05:44 +01:00
parent 48f6517e1b
commit 8bd8edc90d

View file

@ -52,10 +52,10 @@ func Endpoint(wrapped func(httprouter.Params) (bird.Parsed, bool)) httprouter.Ha
res := make(map[string]interface{})
ret, from_cache := wrapped(ps)
if ret == nil {
w.WriteHeader(http.StatusTooManyRequests)
return
}
if ret == nil {
w.WriteHeader(http.StatusTooManyRequests)
return
}
res["api"] = GetApiInfo(from_cache)
for k, v := range ret {