Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gateway/src/apicast/policy/headers/headers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ local command_functions = {
local function run_commands(context, commands, header_type, ...)
for _, command in ipairs(commands) do
local command_func = command_functions[header_type][command.op]
local value = command.template_string:render(context)
local value
if command.op ~= 'delete' then
value = command.template_string:render(context)
end

command_func(command.header, value, ...)
end
Expand Down
Loading