[vlc-commits] httpd: handle Connection header in OPTIONS requests
Rémi Denis-Courmont
git at videolan.org
Sun Oct 8 17:28:12 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 8 18:17:37 2017 +0300| [7c0ae26a405e90a13238862e4d28025f7373a0f4] | committer: Rémi Denis-Courmont
httpd: handle Connection header in OPTIONS requests
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c0ae26a405e90a13238862e4d28025f7373a0f4
---
src/network/httpd.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 0d213def2d..052e50b4ce 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1795,6 +1795,9 @@ static void httpdLoop(httpd_host_t *host)
break;
}
+ if (httpd_MsgGet(&cl->query, "Connection") != NULL)
+ 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