fix pprof

This commit is contained in:
wanna
2025-12-09 11:49:55 +08:00
parent b58643cc2f
commit 3165451086
2 changed files with 13 additions and 9 deletions

View File

@@ -6,15 +6,16 @@
package middleware
import (
"hotgo/internal/consts"
"hotgo/internal/library/response"
"hotgo/utility/charset"
"hotgo/utility/simple"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/util/gmeta"
"hotgo/internal/consts"
"hotgo/internal/library/response"
"hotgo/utility/charset"
"hotgo/utility/simple"
)
// ResponseHandler HTTP响应预处理
@@ -45,6 +46,7 @@ func (s *sMiddleware) ResponseHandler(r *ghttp.Request) {
s.responseXml(r)
return
case consts.HTTPContentTypeStream:
case consts.HTTPContentTypeOctetStream:
default:
responseJson(r)
}