diff --git a/cmake/windows-setup.cmake b/cmake/windows-setup.cmake index 11fb72a8301..37c3ebbe9cb 100644 --- a/cmake/windows-setup.cmake +++ b/cmake/windows-setup.cmake @@ -26,7 +26,7 @@ if(FLB_WINDOWS_DEFAULTS) set(FLB_IN_EXEC_WASI No) set(FLB_IN_FORWARD Yes) set(FLB_IN_HEALTH No) - set(FLB_IN_HTTP No) + set(FLB_IN_HTTP Yes) set(FLB_IN_MEM No) set(FLB_IN_KMSG No) set(FLB_IN_LIB Yes) diff --git a/plugins/in_http/http_conn.c b/plugins/in_http/http_conn.c index d2d96b8da22..54b58311f38 100644 --- a/plugins/in_http/http_conn.c +++ b/plugins/in_http/http_conn.c @@ -134,7 +134,7 @@ static int http_conn_event(void *data) * handled, the additional memset intends to wipe any left over data * from the headers parsed in the previous request. */ - memset(&conn->session.parser, 0, sizeof(mk_http_parser)); + memset(&conn->session.parser, 0, sizeof(struct mk_http_parser)); mk_http_parser_init(&conn->session.parser); http_conn_request_init(&conn->session, &conn->request); } @@ -146,7 +146,7 @@ static int http_conn_event(void *data) * handled, the additional memset intends to wipe any left over data * from the headers parsed in the previous request. */ - memset(&conn->session.parser, 0, sizeof(mk_http_parser)); + memset(&conn->session.parser, 0, sizeof(struct mk_http_parser)); mk_http_parser_init(&conn->session.parser); http_conn_request_init(&conn->session, &conn->request); }