diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:48:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-03 18:48:01 +0100 |
commit | 77a8931e282ac156eb1f3e07580194e210b4cbe1 (patch) | |
tree | 81c63e86e1b6d86a9ac917c4e036ac2f4250f6d7 /src | |
parent | b5e51581d44b11f6362a23ad4c419e9027e71fe4 (diff) | |
download | rspamd-77a8931e282ac156eb1f3e07580194e210b4cbe1.tar.gz rspamd-77a8931e282ac156eb1f3e07580194e210b4cbe1.zip |
Fix simple headers API.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index fe6816eb6..46cca8eb1 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -583,7 +583,9 @@ lua_task_push_header (lua_State * L, gint i = 1; const gchar *val; - lua_newtable (L); + if (full) { + lua_newtable (L); + } rh = g_hash_table_lookup (task->raw_headers, name); if (rh == NULL) { |