Commit b3b724f1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

http: negotiate HTTP/1.1 explicitly over TLS

parent 1f4ef747
......@@ -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" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment