mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 07:21:26 +02:00
feat(idlewatcher): add option to disable loading page
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user