From 8ff9a12a34611f66f5dea83b1c3baff37e17d5c2 Mon Sep 17 00:00:00 2001 From: lejianwen <84855512@qq.com> Date: Wed, 19 Feb 2025 16:04:03 +0800 Subject: [PATCH] fix: Js content-type --- http/controller/web/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http/controller/web/index.go b/http/controller/web/index.go index d2c093b..97d0fae 100644 --- a/http/controller/web/index.go +++ b/http/controller/web/index.go @@ -23,5 +23,6 @@ localStorage.setItem(ws2_prefix+'api-server', "` + apiServer + `") window.webclient_magic_queryonline = ` + magicQueryonline + `` + c.Header("Content-Type", "application/javascript") c.String(200, tmp) }