diff --git a/server/adminserver/middleware/actlog.go b/server/adminserver/middleware/actlog.go index fd7102c3..d2c52dd4 100644 --- a/server/adminserver/middleware/actlog.go +++ b/server/adminserver/middleware/actlog.go @@ -60,6 +60,9 @@ func ActLog(c *gin.Context) bool { var bodyBytes []byte bodyBytes, err := io.ReadAll(c.Request.Body) if err == nil { + if len(bodyBytes) > 16*1024*1024 { + return false + } c.Request.Body = io.NopCloser(bytes.NewBuffer(bodyBytes)) info.Postdata = string(bodyBytes) }