]> source.dussan.org Git - rspamd.git/commitdiff
Fix simple headers API.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Sep 2014 17:48:01 +0000 (18:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Sep 2014 17:48:01 +0000 (18:48 +0100)
src/lua/lua_task.c

index fe6816eb66a17be57511ab387505a503537378bd..46cca8eb15598dfa5657740a77a2f778f9869e1c 100644 (file)
@@ -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) {