From: Vsevolod Stakhov Date: Wed, 3 Sep 2014 17:48:01 +0000 (+0100) Subject: Fix simple headers API. X-Git-Tag: 0.7.0~43^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77a8931e282ac156eb1f3e07580194e210b4cbe1;p=rspamd.git Fix simple headers API. --- 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) {