diff --git a/docs/src/content/docs/changelog.mdx b/docs/src/content/docs/changelog.mdx index 145942306..2f3d83917 100644 --- a/docs/src/content/docs/changelog.mdx +++ b/docs/src/content/docs/changelog.mdx @@ -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 diff --git a/v3/internal/assetserver/fallback_response_writer.go b/v3/internal/assetserver/fallback_response_writer.go index cd5a5d9e3..c26d3cc52 100644 --- a/v3/internal/assetserver/fallback_response_writer.go +++ b/v3/internal/assetserver/fallback_response_writer.go @@ -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() + } +}