This commit is contained in:
xuyue committed 2025-09-28 14:19:49 +08:00
1 parent 484ce85e65
commit ce3903882d
1 file changed
+3
+3
View File
@@ -144,6 +144,9 @@ func main() {
c.JSON(http.StatusInternalServerError, gin.H{"error": "streaming not supported"}) c.JSON(http.StatusInternalServerError, gin.H{"error": "streaming not supported"})
return return
} }
if flusher, ok := c.Writer.(http.Flusher); ok {
flusher.Flush()
}
c.Status(http.StatusOK) c.Status(http.StatusOK)