fix comment

This commit is contained in:
silverwind 2024-04-25 23:48:49 +02:00
parent 484691be05
commit 41bd63b6e8
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 1 additions and 1 deletions

View File

@ -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)