From ce3903882d7b2df3cf07f219458b1724ea20b23b Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 28 Sep 2025 14:19:49 +0800 Subject: [PATCH] fix --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 151e992..9e7b8e0 100644 --- a/main.go +++ b/main.go @@ -144,6 +144,9 @@ func main() { c.JSON(http.StatusInternalServerError, gin.H{"error": "streaming not supported"}) return } + if flusher, ok := c.Writer.(http.Flusher); ok { + flusher.Flush() + } c.Status(http.StatusOK)