httpd: advertise HTTP/1.1 support over TLS
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Aug 2014 20:15:02 +0000 (23:15 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Aug 2014 20:26:42 +0000 (23:26 +0300)
src/network/httpd.c

index e243ac6..e9a1820 100644 (file)
@@ -2047,8 +2047,12 @@ static void httpdLoop(httpd_host_t *host)
 
         vlc_tls_t *p_tls;
 
-        if (host->p_tls)
-            p_tls = vlc_tls_SessionCreate(host->p_tls, fd, NULL, NULL);
+        if (host->p_tls != NULL)
+        {
+            const char *alpn[] = { "http/1.1", NULL };
+
+            p_tls = vlc_tls_SessionCreate(host->p_tls, fd, NULL, alpn);
+        }
         else
             p_tls = NULL;