fix progress reporting during import through the accounts web page

the import was still processed, but the SSE connection to fetch progress did
not work since adding the loggingWriter.

found while working on other functionality that uses SSE.
This commit is contained in:
Mechiel Lukkien
2023-07-05 12:54:24 +02:00
parent 785a38c8b0
commit 91ffa4e99b
2 changed files with 18 additions and 3 deletions

View File

@ -129,7 +129,7 @@ func accountHandle(w http.ResponseWriter, r *http.Request) {
flusher, ok := w.(http.Flusher)
if !ok {
log.Error("internal error: ResponseWriter not a http.Flusher")
http.Error(w, "500 - internal error - cannot sync to http connection", 500)
http.Error(w, "500 - internal error - cannot access underlying connection", 500)
return
}