From: Andrew Lewis Date: Wed, 10 Aug 2016 21:20:58 +0000 (+0200) Subject: [Doc] Fix set_rmilter_reply example X-Git-Tag: 1.3.3~34^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F836%2Fhead;p=rspamd.git [Doc] Fix set_rmilter_reply example --- 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);