]> git.sesse.net Git - vlc/commitdiff
Use 443 rather than 80 as the implicit Host: port when using TLS
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 3 Mar 2008 16:49:08 +0000 (18:49 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 3 Mar 2008 16:49:37 +0000 (18:49 +0200)
Signed-off-by: Rémi Denis-Courmont <rem@videolan.org>
modules/access/http.c

index c669400e4c61edaa7bf4ca9b6483787223dc1f26..44d3c196f41d8ae21fd91416435c7777257ce70e 100644 (file)
@@ -1009,7 +1009,7 @@ static int Request( access_t *p_access, int64_t i_tell )
         {
             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,
                         "GET %s HTTP/1.%d\r\nHost: %s:%d\r\n",