From facf2af66e0f69a7a0673f4612b719b4685eaa3c Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 31 Jul 2014 20:05:25 +0100 Subject: [PATCH] Clearing off HTTP headers in close_local_endpoint() --- mongoose.c | 1 + 1 file changed, 1 insertion(+) 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