Commit 13836da7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use 443 rather than 80 as the implicit Host: port when using TLS

Signed-off-by: default avatarRémi Denis-Courmont <rem@videolan.org>
parent 5f3d2122
...@@ -913,7 +913,7 @@ static int Request( access_t *p_access, int64_t i_tell ) ...@@ -913,7 +913,7 @@ static int Request( access_t *p_access, int64_t i_tell )
{ {
psz_path = "/"; psz_path = "/";
} }
if( p_sys->url.i_port != 80) if( p_sys->url.i_port != (pvs ? 443 : 80) )
{ {
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs,
"GET %s HTTP/1.%d\r\nHost: %s:%d\r\n", "GET %s HTTP/1.%d\r\nHost: %s:%d\r\n",
......
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