Reminder in debug output to explain high CPU usage

This commit is contained in:
Jakob Borg 2015-04-20 14:29:38 +09:00
parent 42ff4b5bf0
commit c905a41e2a

View File

@ -42,6 +42,10 @@ func basicAuthAndSessionMiddleware(cfg config.GUIConfiguration, next http.Handle
}
}
if debugHTTP {
l.Debugln("Sessionless HTTP request with authentication; this is expensive.")
}
error := func() {
time.Sleep(time.Duration(rand.Intn(100)+100) * time.Millisecond)
w.Header().Set("WWW-Authenticate", "Basic realm=\"Authorization Required\"")