feat(idlewatcher): add option to disable loading page

This commit is contained in:
yusing
2025-12-17 10:22:09 +08:00
parent 37e72cda57
commit a54f6942ba
4 changed files with 11 additions and 8 deletions

View File

@@ -175,7 +175,7 @@ func (w *Watcher) wakeFromHTTP(rw http.ResponseWriter, r *http.Request) (shouldN
}
}
if !acceptHTML {
if !acceptHTML || w.cfg.NoLoadingPage {
// send a continue response to prevent client wait-header timeout
rw.WriteHeader(http.StatusContinue)
ready := w.waitForReady(r.Context())