5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-21 03:19:31 +08:00

Merge pull request #4245 from justinmoon/flush

fallbackResponseWriter implement Flush()
This commit is contained in:
Lea Anthony 2025-04-27 10:25:38 +10:00 committed by GitHub
commit 2bfbe7f902
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -124,6 +124,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed transparency issue for frameless windows by [@leaanthony](https://github.com/leaanthony) based on work by @kron.
- Fixed focus calls when window is disabled or minimised by [@leaanthony](https://github.com/leaanthony) based on work by @kron.
- Fixed system trays not showing after taskbar restarts by [@leaanthony](https://github.com/leaanthony) based on work by @kron.
- Fixed fallbackResponseWriter not implementing Flush() in
[#4245](https://github.com/wailsapp/wails/pull/4245)
### Changed

View File

@ -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()
}
}