request_handler: Initialize content_length and transferred_length
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user