From 77a8931e282ac156eb1f3e07580194e210b4cbe1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 3 Sep 2014 18:48:01 +0100 Subject: [PATCH] Fix simple headers API. --- src/lua/lua_task.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5