fix: panic with metrics recorder.
This commit is contained in:
parent
211fa18ac2
commit
33a1499bdd
1 changed files with 3 additions and 1 deletions
|
@ -33,5 +33,7 @@ func (r *responseRecorder) CloseNotify() <-chan bool {
|
|||
|
||||
// Flush sends any buffered data to the client.
|
||||
func (r *responseRecorder) Flush() {
|
||||
r.ResponseWriter.(http.Flusher).Flush()
|
||||
if f, ok := r.ResponseWriter.(http.Flusher); ok {
|
||||
f.Flush()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue