[vlc-devel] commit: Use 443 rather than 80 as the implicit Host: port when using TLS ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Mar 3 21:08:12 CET 2008


vlc | branch: 0.8.6-bugfix | Rémi Denis-Courmont <rem at videolan.org> | Mon Mar  3 18:49:08 2008 +0200| [13836da79d83e7257c82633d5e3f719d31ec9647]

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

Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=13836da79d83e7257c82633d5e3f719d31ec9647
---

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index a7d25c1..3ecda88 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -913,7 +913,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",




More information about the vlc-devel mailing list