diff --git a/cmd/syncthing/gui_auth.go b/cmd/syncthing/gui_auth.go index b0391a782..1fe62b587 100644 --- a/cmd/syncthing/gui_auth.go +++ b/cmd/syncthing/gui_auth.go @@ -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\"")