From ee857250337a3d9f56d6f3dfc33e1d401729fa20 Mon Sep 17 00:00:00 2001 From: ovo Date: Wed, 12 Aug 2026 16:19:29 +0800 Subject: [PATCH] Update sse.go Add Content-Type charset=utf-8 declaration to fix non-ASCII character encoding issues --- pkg/sse/sse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sse/sse.go b/pkg/sse/sse.go index 1dd350a..37bda12 100644 --- a/pkg/sse/sse.go +++ b/pkg/sse/sse.go @@ -193,7 +193,7 @@ func StreamWith(c *rux.Context, opts *Options, producer Producer) (retErr error) } h := c.Resp.Header() - h.Set("Content-Type", "text/event-stream") + h.Set("Content-Type", "text/event-stream; charset=utf-8") h.Set("Cache-Control", "no-cache") h.Set("Connection", "keep-alive") // Disable buffering for nginx / envoy / etc. — without this, proxies