[vlc-commits] httpd: handle Connection header in redirections

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


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

httpd: handle Connection header in redirections

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

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

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 84c8e699cc..3ce376327a 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -551,6 +551,9 @@ static int httpd_RedirectCallBack(httpd_callback_sys_t *p_sys,
 
     httpd_MsgAdd(answer, "Content-Length", "%d", answer->i_body);
 
+    if (httpd_MsgGet(&cl->query, "Connection") != NULL)
+        httpd_MsgAdd(answer, "Connection", "close");
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list