diff --git a/mongoose.c b/mongoose.c index e38ccb39..4d57fb84 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4542,6 +4542,7 @@ static void close_local_endpoint(struct connection *conn) { conn->endpoint.nc = NULL; c->request_method = c->uri = c->http_version = c->query_string = NULL; conn->request = conn->path_info = NULL; + memset(c->http_headers, 0, sizeof(c->http_headers)); if (keep_alive) { on_recv_data(conn); // Can call us recursively if pipelining is used