From 1f4ef74700134b3947b23bf83ca5625f17708f58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Sat, 23 Aug 2014 23:15:02 +0300
Subject: [PATCH] httpd: advertise HTTP/1.1 support over TLS

---
 src/network/httpd.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index e243ac6936b8..e9a18200656f 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -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;
 
-- 
GitLab