]> source.dussan.org Git - rspamd.git/commitdiff
[Doc] Fix set_rmilter_reply example 836/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 10 Aug 2016 21:20:58 +0000 (23:20 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 10 Aug 2016 21:20:58 +0000 (23:20 +0200)
src/lua/lua_task.c

index 511fa4a6f9e828cb07ce161a6956fb3c98571f69..1f3620b437ae1899eaffaf4693b91cc53638ea49 100644 (file)
@@ -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);