This commit is contained in:
c菌
2023-09-16 20:40:28 +08:00
parent 14cf6d01ed
commit f74ba295ee

View File

@@ -347,6 +347,7 @@ func TransRsp(c *gin.Context, isStream bool, reader *bufio.Reader) {
case data := <-dataChan:
if data != "" {
c.Writer.WriteString("data: " + data)
c.Writer.WriteString("\n\n")
c.Writer.Flush()
}
case <-stopChan: