]> git.sesse.net Git - vlc/blobdiff - src/network/httpd.c
httpd: Fix keepalive/close of non-matching HTTP versions.
[vlc] / src / network / httpd.c
index 5f5f37770d6aa2726e40f9fbe30e65e600c69a7f..2587d2deef503cb8d80511b8ec46335bedfe5be2 100644 (file)
@@ -2352,8 +2352,8 @@ retry:
                     }
 
                     if( ( ( cl->query.i_proto == HTTPD_PROTO_HTTP ) &&
-                          ( ( cl->answer.i_version == 0 && b_keepalive ) ||
-                            ( cl->answer.i_version == 1 && !b_connection ) ) ) ||
+                          ( ( cl->query.i_version == 0 && b_keepalive ) ||
+                            ( cl->query.i_version == 1 && !b_connection ) ) ) ||
                         ( ( cl->query.i_proto == HTTPD_PROTO_RTSP ) &&
                           !b_query && !b_connection ) )
                     {