feat(idlewatcher): add option to disable loading page

This commit is contained in:
yusing
2025-12-17 10:22:09 +08:00
parent b7250b29e0
commit 86a46d191d
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())