From 3574f2ba199e8c996537d6644e42cee3198c2511 Mon Sep 17 00:00:00 2001 From: wiaam-mhameed <75263243+wiaam-mhameed@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:51:26 +0200 Subject: [PATCH] Fix lua installation (#57) * fix wrong type * for testing * add brotli * add brotli * try only adding brotli to the libraries list * try add brotli to the libdirs * remove unnecessary lib * return the main tag --------- Co-authored-by: wiaamm --- .../open-appsec-waf-kong-plugin/lua_attachment_wrapper.c | 4 ++-- .../open-appsec-waf-kong-plugin-1.0.0-1.rockspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c b/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c index eb49244..a74ece6 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/lua_attachment_wrapper.c @@ -364,7 +364,7 @@ static int lua_send_body(lua_State *L) { } if (body_len <= 8 * 1024) { - HttpBody http_chunks; + NanoHttpBody http_chunks; http_chunks.bodies_count = 1; nano_str_t chunk; @@ -400,7 +400,7 @@ static int lua_send_body(lua_State *L) { num_chunks = 10000; } - HttpBody http_chunks; + NanoHttpBody http_chunks; http_chunks.bodies_count = num_chunks; http_chunks.data = (nano_str_t*)malloc(num_chunks * sizeof(nano_str_t)); diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/open-appsec-waf-kong-plugin-1.0.0-1.rockspec b/attachments/kong/plugins/open-appsec-waf-kong-plugin/open-appsec-waf-kong-plugin-1.0.0-1.rockspec index 3b44c02..d790ff8 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/open-appsec-waf-kong-plugin-1.0.0-1.rockspec +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/open-appsec-waf-kong-plugin-1.0.0-1.rockspec @@ -51,7 +51,7 @@ build = { "external/" }, defines = { "_GNU_SOURCE", "ZLIB_CONST" }, - libraries = { "pthread", "z", "rt", "stdc++" }, + libraries = { "pthread", "z", "rt", "stdc++", "brotlienc", "brotlidec", "brotlicommon" }, ldflags = { "-static-libstdc++", "-static-libgcc" } } }