From 26bc2d98b331ee7cd801cbd2f293773842c55603 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Thu, 28 Dec 2023 14:04:35 +0800 Subject: [PATCH] move http context:reset() --- kong/router/atc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kong/router/atc.lua b/kong/router/atc.lua index c4400d6d154..f05053f8eb0 100644 --- a/kong/router/atc.lua +++ b/kong/router/atc.lua @@ -408,13 +408,13 @@ function _M:matching(params) nil, nil, params.sni, params.headers, params.queries) - self.context:reset() - local host, port = split_host_port(req_host) params.host = host params.port = port + self.context:reset() + local c, err = fill_atc_context(self.context, self.fields, params) if not c then