Commit 394c9c90 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

httpd: handle Connection header on unknown requests

parent 7c0ae26a
...@@ -1818,6 +1818,7 @@ static void httpdLoop(httpd_host_t *host) ...@@ -1818,6 +1818,7 @@ static void httpdLoop(httpd_host_t *host)
answer->i_body = httpd_HtmlError (&p, 501, NULL); answer->i_body = httpd_HtmlError (&p, 501, NULL);
answer->p_body = (uint8_t *)p; answer->p_body = (uint8_t *)p;
httpd_MsgAdd(answer, "Content-Length", "%d", answer->i_body); httpd_MsgAdd(answer, "Content-Length", "%d", answer->i_body);
httpd_MsgAdd(answer, "Connection", "close");
cl->i_buffer = -1; /* Force the creation of the answer in httpd_ClientSend */ cl->i_buffer = -1; /* Force the creation of the answer in httpd_ClientSend */
cl->i_state = HTTPD_CLIENT_SENDING; cl->i_state = HTTPD_CLIENT_SENDING;
......
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