Commit facf2af6 authored by Sergey Lyubka's avatar Sergey Lyubka

Clearing off HTTP headers in close_local_endpoint()

parent cc54195f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment