diff options
| -rw-r--r-- | dashboard/app/handler.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go index 91c051e2b..265de910c 100644 --- a/dashboard/app/handler.go +++ b/dashboard/app/handler.go @@ -33,10 +33,12 @@ func handleContext(fn contextHandler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { c := appengine.NewContext(r) c = context.WithValue(c, ¤tURLKey, r.URL.RequestURI()) - if !throttleRequest(c, w, r) { - return + if accessLevel(c, r) == AccessPublic { + if !throttleRequest(c, w, r) { + return + } + defer backpressureRobots(c, r)() } - defer backpressureRobots(c, r)() if err := fn(c, w, r); err != nil { hdr := commonHeaderRaw(c, r) data := &struct { |
