Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Dec 22, 2024
1 parent 21387f2 commit 8900fa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apisix/control/router.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ do
if type(body) == "table" and ngx.header["Content-Type"] == nil then
core.response.set_header("Content-Type", "application/json")
end
if type(body) then
if type(body) == "table" then
body.checker = nil
body.checker_idx = nil
body.checker_upstream = nil
body.clean_handlers = nil
if body.clean_handlers then
body.clean_handlers = {}
end
end
core.response.exit(code, body)
end
Expand Down

0 comments on commit 8900fa1

Please sign in to comment.