Skip to content

Commit

Permalink
fix: body-transformer - failed to transform XML - remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
WrightKD committed Oct 23, 2024
1 parent e2f33c5 commit a59a87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apisix/plugins/body-transformer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ local function remove_namespace(tbl)
end
return v
end

local function remove_namespace_wrapper(old_table, new_table)
for k, v in pairs(old_table) do
if type(k) == "string" then
Expand All @@ -102,7 +102,7 @@ local function remove_namespace(tbl)
end
return new_table
end

return remove_namespace_wrapper(tbl, {})
end

Expand Down

0 comments on commit a59a87b

Please sign in to comment.