From 6c52111a871f4245c0ec1972591ad525da65af2f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Aug 2018 20:18:03 +0100 Subject: [PATCH] [Minor] Allow to extract raw header --- lualib/lua_selectors.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8a1571454..4a5845974 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -317,6 +317,16 @@ local transform_function = { return inp.value end }, + -- Get header raw value + ['hdr_raw'] = { + ['types'] = { + ['header'] = true, + }, + ['map_type'] = 'string', + ['process'] = function(inp, _) + return inp.raw + end + }, -- Extracts table value from table ['elt'] = { ['types'] = { -- 2.39.5