[vlc-commits] httpd: handle Connection header in "streams"

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


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

httpd: handle Connection header in "streams"

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

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

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 3ce376327a..0d213def2d 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -742,6 +742,9 @@ static int httpd_StreamCallBack(httpd_callback_sys_t *p_sys,
 
         if (!b_has_cache_control)
             httpd_MsgAdd(answer, "Cache-Control", "no-cache");
+
+        httpd_MsgAdd(answer, "Connection", "close");
+
         return VLC_SUCCESS;
     }
 }



More information about the vlc-commits mailing list