mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-03 14:32:56 +03:00
- Web: flush the bufferred response data before performing global operations
This commit is contained in:
parent
2191c49161
commit
e24143a196
3 changed files with 12 additions and 4 deletions
|
@ -548,7 +548,9 @@ func handleUpdate(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
returnOK(w)
|
||||
if f, ok := w.(http.Flusher); ok {
|
||||
f.Flush()
|
||||
}
|
||||
|
||||
time.Sleep(time.Second) // wait (hopefully) until response is sent (not sure whether it's really necessary)
|
||||
go finishUpdate(u)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue