diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-25 12:42:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-25 12:42:59 +0000 |
commit | f8af1c1f2fea4c1c1eda945578eb8c16e7358ef3 (patch) | |
tree | bb2be5678d2222c3a87d5a35635c961fe8c6131d /src/lua/lua_task.c | |
parent | 372c476e2ae73ca50069d8616033e4702f498b31 (diff) | |
download | rspamd-f8af1c1f2fea4c1c1eda945578eb8c16e7358ef3.tar.gz rspamd-f8af1c1f2fea4c1c1eda945578eb8c16e7358ef3.zip |
[Minor] Append header to the ordered list of headers if it does not exist
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index fe6e498c9..727860208 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -6750,7 +6750,10 @@ lua_task_modify_header(lua_State *L) ucl_object_t *mods = ucl_object_lua_import(L, 3); rspamd_message_set_modified_header(task, - MESSAGE_FIELD_CHECK(task, raw_headers), hname, mods); + MESSAGE_FIELD(task, raw_headers), + hname, + mods, + &(MESSAGE_FIELD(task, headers_order))); ucl_object_unref(mods); lua_pushboolean(L, true); |