From 9e001abcd595fec7bea94449f0ab1eddbab5b7cb Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 26 Nov 2021 13:42:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DWAF=E4=B8=ADscheme=20checkpoi?= =?UTF-8?q?nt=E5=80=BC=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/waf/checkpoints/request_scheme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/waf/checkpoints/request_scheme.go b/internal/waf/checkpoints/request_scheme.go index 05f98c6..c01fb62 100644 --- a/internal/waf/checkpoints/request_scheme.go +++ b/internal/waf/checkpoints/request_scheme.go @@ -10,7 +10,7 @@ type RequestSchemeCheckpoint struct { } func (this *RequestSchemeCheckpoint) RequestValue(req requests.Request, param string, options maps.Map) (value interface{}, sysErr error, userErr error) { - value = req.WAFRaw().URL.Scheme + value = req.Format("${scheme}") return }