From 65cedf397fcc45d49d6ba90987ea5e6692415b3a Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 10 Aug 2016 23:20:58 +0200 Subject: [PATCH] [Doc] Fix set_rmilter_reply example --- src/lua/lua_task.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 511fa4a6f..1f3620b43 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -544,8 +544,9 @@ LUA_FUNCTION_DEF (task, get_settings_id); * @param {any} obj any lua object that corresponds to the settings format * @example task:set_rmilter_reply({ - add_headers = {{'X-Lua', 'test'}}, - remove_headers = {'DKIM-Signature}, + add_headers = {['X-Lua'] = 'test'}, + -- 1 is the position of header to remove + remove_headers = {['DKIM-Signature'] = 1}, }) */ LUA_FUNCTION_DEF (task, set_rmilter_reply); -- 2.39.5