From 1b00199f37e75e745d6e66ae4875e444611c1bee Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 28 Mar 2021 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/waf/captcha_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/waf/captcha_validator.go b/internal/waf/captcha_validator.go index a4b889e..e945e27 100644 --- a/internal/waf/captcha_validator.go +++ b/internal/waf/captcha_validator.go @@ -67,7 +67,7 @@ func (this *CaptchaValidator) validate(request *requests.Request, writer http.Re http.SetCookie(writer, &http.Cookie{ Name: "TEAWEB_WAF_CAPTCHA", Value: m + timestamp, - MaxAge: CaptchaSeconds, + MaxAge: CaptchaSeconds, // TODO 这个时间可以设置 Path: "/", // all of dirs })