0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-09-27 11:39:06 +02:00
This commit is contained in:
silverwind 2024-04-25 23:28:24 +02:00
parent 7e40149415
commit 0dbb24635a
No known key found for this signature in database
GPG key ID: 2E62B41C93869443

View file

@ -140,7 +140,7 @@ func (b *Base) JSON(status int, content any) {
// JSON render content as JSON
func (b *Base) HTMLString(status int, html string) {
b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8")
b.Resp.WriteHeader(status);
b.Resp.WriteHeader(status)
b.Resp.Write([]byte(html))
}