【新增】 protection 模块新增 signature 实现 API 签名

This commit is contained in:
zhougang
2024-05-19 15:34:45 +08:00
parent 64aab9ea1b
commit 8e5584821e
7 changed files with 458 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ public class CacheRequestBodyWrapper extends HttpServletRequestWrapper {
*/
private final byte[] body;
public byte[] getBody() {
return body;
}
public CacheRequestBodyWrapper(HttpServletRequest request) {
super(request);
body = ServletUtils.getBodyBytes(request);