[vlc-commits] http: simplify CONNECT format string

Rémi Denis-Courmont git at videolan.org
Sun Dec 13 18:08:30 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 13 18:56:40 2015 +0200| [79dbd164c794a937094d864c5d4ee8c2eb695566] | committer: Rémi Denis-Courmont

http: simplify CONNECT format string

i_version is always (1.)1 here.

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

 modules/access/http.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index cc79b72..39789d8 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1006,9 +1006,8 @@ static int Connect( access_t *p_access, uint64_t i_tell )
             }
 
             WriteHeaders( p_access,
-                          "CONNECT %s:%d HTTP/1.%d\r\nHost: %s:%d\r\n\r\n",
+                          "CONNECT %s:%d HTTP/1.1\r\nHost: %s:%d\r\n\r\n",
                           p_sys->url.psz_host, p_sys->url.i_port,
-                          p_sys->i_version,
                           p_sys->url.psz_host, p_sys->url.i_port);
 
             psz = net_Gets( p_access, p_sys->fd );



More information about the vlc-commits mailing list