You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function _M.header_filter(conf, ctx)
if not conf.clear_keys then
return
end
local field_cnt = #conf.clear_keys
for i = 1, field_cnt do
local value = core.request.header(ctx, conf.clear_keys[i])
if value then
ngx.req.set_header(conf.clear_keys[i], nil)
-- ngx.req.clear_header(conf.clear_keys[i])
core.log.warn("clear header key = ", conf.clear_keys[i],
" , value = ", value)
end
end
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
apisix version : 2.6
plugin code :
log print
postman
I don't know why this happened. Thank you for taking the time to help solve the problem.
Beta Was this translation helpful? Give feedback.
All reactions