aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-10 23:45:38 +0100
committerGitHub <noreply@github.com>2016-08-10 23:45:38 +0100
commit29d44a583c7df1f908bb67546d113b933e37df8e (patch)
tree9060d5d734e5ac16b4ad5a4b7d7c6369ca37aea5
parent329ca0943100038132d703d035002436523d2294 (diff)
parent65cedf397fcc45d49d6ba90987ea5e6692415b3a (diff)
downloadrspamd-29d44a583c7df1f908bb67546d113b933e37df8e.tar.gz
rspamd-29d44a583c7df1f908bb67546d113b933e37df8e.zip
Merge pull request #836 from fatalbanana/rmilter
[Doc] Fix set_rmilter_reply example
-rw-r--r--src/lua/lua_task.c5
1 files 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);