request_handler: Initialize content_length and transferred_length

This commit is contained in:
2025-09-28 17:52:55 +02:00
parent 151c4804fe
commit 3bc1faac39

View File

@@ -59,6 +59,8 @@ static void init_ctx(client_ctx_t *ctx) {
ctx->req_host[0] = 0; ctx->req_host[0] = 0;
ctx->err_msg[0] = 0; ctx->err_msg[0] = 0;
ctx->req_s = ctx->socket.ts_last; ctx->req_s = ctx->socket.ts_last;
ctx->transferred_length = 0;
ctx->content_length = 0;
memset(&ctx->uri, 0, sizeof(ctx->uri)); memset(&ctx->uri, 0, sizeof(ctx->uri));
memset(&ctx->req, 0, sizeof(ctx->req)); memset(&ctx->req, 0, sizeof(ctx->req));