feat: refactor request body handling to use BodyStorage for improved efficiency

This commit is contained in:
CaIon
2026-02-12 01:51:17 +08:00
parent 0aa3dcb56c
commit 29d48e262e
12 changed files with 69 additions and 66 deletions

View File

@@ -288,7 +288,11 @@ func extractChannelAffinityValue(c *gin.Context, src operation_setting.ChannelAf
if src.Path == "" {
return ""
}
body, err := common.GetRequestBody(c)
storage, err := common.GetBodyStorage(c)
if err != nil {
return ""
}
body, err := storage.Bytes()
if err != nil || len(body) == 0 {
return ""
}