Commit 111dac8c 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 ea3b0694
...@@ -1009,7 +1009,7 @@ static int Request( access_t *p_access, int64_t i_tell ) ...@@ -1009,7 +1009,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