Clearing off HTTP headers in close_local_endpoint()

This commit is contained in:
Sergey Lyubka 2014-07-31 20:05:25 +01:00
parent cc54195f59
commit facf2af66e

View File

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