feat: refactor request body handling to use BodyStorage for improved efficiency
This commit is contained in:
1 parent
0aa3dcb56c
commit
29d48e262e
12 files changed
+69
-66
No files matched your search
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user