From a63f38565eeb9fdb547e69343e8fc235604b4668 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Fri, 11 Aug 2023 10:04:52 +0800 Subject: [PATCH] style(router): move some http only functions --- kong/router/atc.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kong/router/atc.lua b/kong/router/atc.lua index e20ee19d4a46..6272c809e5f8 100644 --- a/kong/router/atc.lua +++ b/kong/router/atc.lua @@ -35,12 +35,8 @@ local get_uri_args = ngx.req.get_uri_args local ngx_ERR = ngx.ERR -local sanitize_uri_postfix = utils.sanitize_uri_postfix local check_select_params = utils.check_select_params -local strip_uri_args = utils.strip_uri_args local get_service_info = utils.get_service_info -local add_debug_headers = utils.add_debug_headers -local get_upstream_uri_v0 = utils.get_upstream_uri_v0 local route_match_stat = utils.route_match_stat @@ -410,6 +406,13 @@ end if is_http then + +local sanitize_uri_postfix = utils.sanitize_uri_postfix +local strip_uri_args = utils.strip_uri_args +local add_debug_headers = utils.add_debug_headers +local get_upstream_uri_v0 = utils.get_upstream_uri_v0 + + function _M:select(req_method, req_uri, req_host, req_scheme, _, _, _, _,