fix wrong type

This commit is contained in:
wiaamm
2026-01-15 12:15:14 +02:00
parent 4402e6a861
commit 891c6d49e2

View File

@@ -407,7 +407,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;
@@ -443,7 +443,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));