[vlc-commits] httpd: handle Connection header on unknown requests

Rémi Denis-Courmont git at videolan.org
Sun Oct 8 17:28:16 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct  8 18:18:05 2017 +0300| [394c9c90b5a267082930a4288e884451f2a97ca2] | committer: Rémi Denis-Courmont

httpd: handle Connection header on unknown requests

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=394c9c90b5a267082930a4288e884451f2a97ca2
---

 src/network/httpd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 052e50b4ce..58512b11bb 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1818,6 +1818,7 @@ static void httpdLoop(httpd_host_t *host)
                             answer->i_body = httpd_HtmlError (&p, 501, NULL);
                             answer->p_body = (uint8_t *)p;
                             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_state = HTTPD_CLIENT_SENDING;



More information about the vlc-commits mailing list