瀏覽代碼

fmt

pull/30707/head
silverwind 3 週之前
父節點
當前提交
0dbb24635a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      services/context/base.go

+ 1
- 1
services/context/base.go 查看文件

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


Loading…
取消
儲存