mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 22:41:44 +01:00
fmt
This commit is contained in:
parent
7e40149415
commit
0dbb24635a
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ func (b *Base) JSON(status int, content any) {
|
||||||
// JSON render content as JSON
|
// JSON render content as JSON
|
||||||
func (b *Base) HTMLString(status int, html string) {
|
func (b *Base) HTMLString(status int, html string) {
|
||||||
b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8")
|
b.Resp.Header().Set("Content-Type", "text/html;charset=utf-8")
|
||||||
b.Resp.WriteHeader(status);
|
b.Resp.WriteHeader(status)
|
||||||
b.Resp.Write([]byte(html))
|
b.Resp.Write([]byte(html))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue