diff --git a/subsys/net/lib/http/http_server_http1.c b/subsys/net/lib/http/http_server_http1.c index 1f89a6476ccdca..05054b4a0cebe1 100644 --- a/subsys/net/lib/http/http_server_http1.c +++ b/subsys/net/lib/http/http_server_http1.c @@ -487,6 +487,7 @@ int enter_http1_request(struct http_client_ctx *client) client->parser_settings.on_body = on_body; client->parser_settings.on_message_complete = on_message_complete; client->parser_state = HTTP1_INIT_HEADER_STATE; + client->http1_headers_sent = false; memset(client->header_buffer, 0, sizeof(client->header_buffer)); memset(client->url_buffer, 0, sizeof(client->url_buffer));