http: negotiate HTTP/1.1 explicitly over TLS
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Aug 2014 20:24:37 +0000 (23:24 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Aug 2014 20:26:42 +0000 (23:26 +0300)
modules/access/http.c

index 91ac069..9afca9f 100644 (file)
@@ -1108,8 +1108,11 @@ static int Connect( access_t *p_access, uint64_t i_tell )
         }
 
         /* TLS/SSL handshake */
+        const char *alpn[] = { "http/1.1", NULL };
+
         p_sys->p_tls = vlc_tls_ClientSessionCreate( p_sys->p_creds, p_sys->fd,
-                                    p_sys->url.psz_host, "https", NULL, NULL );
+                p_sys->url.psz_host, "https",
+                p_sys->i_version ? alpn : NULL, NULL );
         if( p_sys->p_tls == NULL )
         {
             msg_Err( p_access, "cannot establish HTTP/TLS session" );