mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-13 13:33:44 +08:00
优化响应中间件,自动识别响应数据格式
This commit is contained in:
@@ -6,8 +6,6 @@ import (
|
||||
|
||||
// HomeAuth 前台页面鉴权中间件
|
||||
func (s *sMiddleware) HomeAuth(r *ghttp.Request) {
|
||||
r.Response.Header().Set("Content-Type", "text/html")
|
||||
|
||||
// 鉴权
|
||||
// ...
|
||||
|
||||
|
Reference in New Issue
Block a user