mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 13:49:01 +08:00
Clearing off HTTP headers in close_local_endpoint()
This commit is contained in:
parent
cc54195f59
commit
facf2af66e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user