Review fixes: recorder Flush without panic; unreadable config file is an error

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-25 02:58:17 -07:00
parent 74e7d4895b
commit 9e0f906c8b
4 changed files with 117 additions and 1 deletions
+3 -1
View File
@@ -147,7 +147,9 @@ func (r *statusRecorder) WriteHeader(code int) {
}
func (r *statusRecorder) Flush() {
r.ResponseWriter.(http.Flusher).Flush()
if f, ok := r.ResponseWriter.(http.Flusher); ok {
f.Flush()
}
}
func (p *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {