Skip to content

Commit

Permalink
style(router): move some http only functions
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored and ADD-SP committed Mar 7, 2024
1 parent aa04f71 commit a63f385
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions kong/router/atc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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,
_, _,
_, _,
Expand Down

0 comments on commit a63f385

Please sign in to comment.