fix header

This commit is contained in:
xuyue committed 2025-09-28 15:19:44 +08:00
1 parent c952764b28
commit 3524e34c13
1 file changed
+1
+1
View File
@@ -145,6 +145,7 @@ func main() {
header.Set("Content-Type", "text/event-stream; charset=utf-8") header.Set("Content-Type", "text/event-stream; charset=utf-8")
header.Set("Cache-Control", "no-cache") header.Set("Cache-Control", "no-cache")
header.Set("Connection", "keep-alive") header.Set("Connection", "keep-alive")
header.Set("Content-Encoding", "none")
c.Status(http.StatusOK) c.Status(http.StatusOK)
c.Writer.WriteHeaderNow() c.Writer.WriteHeaderNow()