fix
This commit is contained in:
parent
50223f1204
commit
ff0a7c1fae
@ -60,6 +60,9 @@ func ActLog(c *gin.Context) bool {
|
|||||||
var bodyBytes []byte
|
var bodyBytes []byte
|
||||||
bodyBytes, err := io.ReadAll(c.Request.Body)
|
bodyBytes, err := io.ReadAll(c.Request.Body)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
if len(bodyBytes) > 16*1024*1024 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
c.Request.Body = io.NopCloser(bytes.NewBuffer(bodyBytes))
|
c.Request.Body = io.NopCloser(bytes.NewBuffer(bodyBytes))
|
||||||
info.Postdata = string(bodyBytes)
|
info.Postdata = string(bodyBytes)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user