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)