diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-20 13:42:07 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-20 13:42:07 +0100 |
commit | 8cf2fa72c986eac23f699e7928d11db41fc50a31 (patch) | |
tree | c6a83fb7777ce7817a6eb43af78fe195596fff29 /src/lua | |
parent | d4e7f410032b2fac361cf28bd3a3e3060da2354e (diff) | |
download | rspamd-8cf2fa72c986eac23f699e7928d11db41fc50a31.tar.gz rspamd-8cf2fa72c986eac23f699e7928d11db41fc50a31.zip |
[Minor] Fixed task:set_request_header(), value is 3rd parameter
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |