From 754a41537ae68e0ecaff24f89848ff21e8c98329 Mon Sep 17 00:00:00 2001 From: Justin Moon Date: Sat, 26 Apr 2025 13:25:44 -0500 Subject: [PATCH 1/2] fallbackResponseWriter implement Flush() --- v3/internal/assetserver/fallback_response_writer.go | 7 +++++++ 1 file changed, 7 insertions(+) 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() + } +} From 1618d5396799bfafadc27607f742fb17120576ae Mon Sep 17 00:00:00 2001 From: Justin Moon Date: Sat, 26 Apr 2025 17:41:21 -0500 Subject: [PATCH 2/2] Update changelog --- docs/src/content/docs/changelog.mdx | 2 ++ 1 file changed, 2 insertions(+) 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