Skip to content

Commit

Permalink
move http context:reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored and dndx committed Dec 28, 2023
1 parent b30060c commit 26bc2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/router/atc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26bc2d9

Please sign in to comment.