From 41bd63b6e8a90fbcb7b359c6bb47fec7cab2d5ce Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 25 Apr 2024 23:48:49 +0200 Subject: [PATCH] fix comment --- services/context/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/context/base.go b/services/context/base.go index 19c8171bab..80a3ee3414 100644 --- a/services/context/base.go +++ b/services/context/base.go @@ -137,7 +137,7 @@ func (b *Base) JSON(status int, content any) { } } -// JSON render content as JSON +// HTMLString renders string as HTML func (b *Base) HTMLString(status int, html string) { b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8") b.Resp.WriteHeader(status)