From d6c1bc01f4864d0a365c1d078707f295cd163c3e Mon Sep 17 00:00:00 2001 From: samwaf Date: Mon, 26 May 2025 16:18:42 +0800 Subject: [PATCH] fix:memory cache #331 --- wafenginecore/wafwebcache/webcache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafenginecore/wafwebcache/webcache.go b/wafenginecore/wafwebcache/webcache.go index 98acb68..17c592d 100644 --- a/wafenginecore/wafwebcache/webcache.go +++ b/wafenginecore/wafwebcache/webcache.go @@ -107,7 +107,7 @@ func StoreWebDataCache(resp *http.Response, hostSafe *wafenginmodel.HostSafe, ca requestMethod := strings.ToLower(resp.Request.Method) requestURI := resp.Request.RequestURI zlog.Debug(fmt.Sprintf("缓存键组成部分 - 方法: %s, URI: %s", requestMethod, requestURI)) - key := utils.Md5String(resp.Request.Method + requestURI) + key := utils.Md5String(requestMethod + requestURI) if requestMethod == "post" || requestMethod == "put" { zlog.Debug(fmt.Sprintf("缓存键组成部分 - BodyHash: %s (用于POST/PUT请求)", weblog.BodyHash)) key = utils.Md5String(requestMethod + requestURI + weblog.BodyHash)