commit bbacfde: [Minor] Fix schema validation

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Dec 9 17:42:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-09 17:39:23 +0000
URL: https://github.com/rspamd/rspamd/commit/bbacfde03e8158e9c225d8acfb521deb984822a7 (HEAD -> master)

[Minor] Fix schema validation

---
 src/plugins/lua/milter_headers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua
index 106f07098..ec9e2c659 100644
--- a/src/plugins/lua/milter_headers.lua
+++ b/src/plugins/lua/milter_headers.lua
@@ -560,7 +560,7 @@ local config_schema = ts.shape({
   skip_authenticated = ts.boolean:is_optional(),
   local_headers = ts.array_of(ts.string):is_optional(),
   authenticated_headers = ts.array_of(ts.string):is_optional(),
-  extended_headers_rcpt = lua_maps.map_schema,
+  extended_headers_rcpt = lua_maps.map_schema:is_optional(),
   custom = ts.map_of(ts.string, ts.string):is_optional(),
 }, {
   extra_fields = ts.map_of(ts.string, ts.any)


More information about the Commits mailing list