mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
fallbackResponseWriter implement Flush()
This commit is contained in:
parent
685d8101aa
commit
754a41537a
1 changed files with 7 additions and 0 deletions
|
|
@ -71,3 +71,10 @@ func (fw *fallbackResponseWriter) WriteHeader(statusCode int) {
|
|||
|
||||
fw.rw.WriteHeader(statusCode)
|
||||
}
|
||||
|
||||
// Flush implements the http.Flusher interface.
|
||||
func (rw *fallbackResponseWriter) Flush() {
|
||||
if f, ok := rw.rw.(http.Flusher); ok {
|
||||
f.Flush()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue