[PATCH] suricatta/wfx: do not fail on no custom_http_headers

11 views
Skip to first unread message

Cirujano Cuesta, Silvano

unread,
May 21, 2026, 9:22:23 AMMay 21
to swup...@googlegroups.com, Zheng, Xiyue
Ensure custom_http_headers is not nil for table merging.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cir...@siemens.com>
Co-authored-by: Xiyue Zheng <xiyue...@siemens.com>
---
suricatta/server_wfx.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/suricatta/server_wfx.lua b/suricatta/server_wfx.lua
index 2b9a3a58..9d67d3c4 100644
--- a/suricatta/server_wfx.lua
+++ b/suricatta/server_wfx.lua
@@ -2182,7 +2182,7 @@ function M.suricatta_funcs.server_start(defaults, argv, fconfig)
headers_to_send = M.utils.table.merge({
["X-Client-Version"] = M.device.version,
["X-Client-Id"] = M.device.id,
- }, configuration.custom_http_headers)
+ }, configuration.custom_http_headers or {}),
}, configuration))
if not M.channel.main then
suricatta.notify.error("Cannot initialize channel.")
--
2.50.1

Stefano Babic

unread,
May 26, 2026, 6:40:32 AM (10 days ago) May 26
to Cirujano Cuesta, Silvano, swup...@googlegroups.com, Zheng, Xiyue
Applied to -master, thanks !

Best regards,
Stefano Babic

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages