[vlc-commits] network: httpd: fix inverted logic in connection reply

Francois Cartegnie git at videolan.org
Wed Jul 20 16:25:03 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 20 11:44:37 2016 +0200| [7879653874c5e62925801ea3f817982d0868bcad] | committer: Francois Cartegnie

network: httpd: fix inverted logic in connection reply

Connection: (null)

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

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

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 31d31d0..5eec4a2 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -348,7 +348,7 @@ httpd_FileCallBack(httpd_callback_sys_t *p_sys, httpd_client_t *cl,
 
     /* We respect client request */
     psz_connection = httpd_MsgGet(&cl->query, "Connection");
-    if (!psz_connection)
+    if (psz_connection)
         httpd_MsgAdd(answer, "Connection", "%s", psz_connection);
 
     httpd_MsgAdd(answer, "Content-Length", "%d", answer->i_body);



More information about the vlc-commits mailing list