From: Mikhail Galanin Date: Thu, 20 Sep 2018 12:42:07 +0000 (+0100) Subject: [Minor] Fixed task:set_request_header(), value is 3rd parameter X-Git-Tag: 1.8.0~51^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cf2fa72c986eac23f699e7928d11db41fc50a31;p=rspamd.git [Minor] Fixed task:set_request_header(), value is 3rd parameter --- diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 98b05d3a5..c51881df8 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1965,7 +1965,7 @@ lua_task_set_request_header (lua_State *L) if (s && task) { if (lua_type (L, 3) == LUA_TSTRING) { - v = luaL_checklstring (L, 2, &vlen); + v = luaL_checklstring (L, 3, &vlen); } else if (lua_type (L, 3) == LUA_TUSERDATA) { t = lua_check_text (L, 3);