From 50fe0053e8fec2600890273c50e195fb8753046b Mon Sep 17 00:00:00 2001 From: Prathik P Kulkarni <83969842+prathik8794@users.noreply.github.com> Date: Mon, 29 Dec 2025 15:19:21 +0530 Subject: [PATCH] chore(api): remove charset declaration from JSON content-type (fixes #10500) (#10508) updated content-type to application/json (fixes #10500) Signed-off-by: prathik8794 --- lib/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/api.go b/lib/api/api.go index a1c075e93..88184ea66 100644 --- a/lib/api/api.go +++ b/lib/api/api.go @@ -203,7 +203,7 @@ func (s *service) getListener(guiCfg config.GUIConfiguration) (net.Listener, err } func sendJSON(w http.ResponseWriter, jsonObject interface{}) { - w.Header().Set("Content-Type", "application/json; charset=utf-8") + w.Header().Set("Content-Type", "application/json") // Marshalling might fail, in which case we should return a 500 with the // actual error. bs, err := json.MarshalIndent(jsonObject, "", " ")