[vlc-commits] http: fix HTTP through proxy (fixes #7417)

Rémi Denis-Courmont git at videolan.org
Mon Sep 3 17:24:46 CEST 2012


vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep  3 18:21:13 2012 +0300| [5aa28459cd3f678b4eb8bc474603f2faad6ec4ab] | committer: Rémi Denis-Courmont

http: fix HTTP through proxy (fixes #7417)

(cherry picked from commit b68f50f1ff7dc742346fb5a1e0f888e549f0ba91)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=5aa28459cd3f678b4eb8bc474603f2faad6ec4ab
---

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

diff --git a/modules/access/http.c b/modules/access/http.c
index ffbffd7..ba5a18f 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1246,8 +1246,9 @@ static int Request( access_t *p_access, uint64_t i_tell )
         psz_path = "/";
     if( p_sys->b_proxy && pvs == NULL )
         net_Printf( p_access, p_sys->fd, NULL,
-                    "GET http://%s:%d HTTP/1.%d\r\n",
-                    p_sys->url.psz_host, p_sys->url.i_port, p_sys->i_version );
+                    "GET http://%s:%d%s HTTP/1.%d\r\n",
+                    p_sys->url.psz_host, p_sys->url.i_port,
+                    psz_path, p_sys->i_version );
     else
         net_Printf( p_access, p_sys->fd, pvs, "GET %s HTTP/1.%d\r\n",
                     psz_path, p_sys->i_version );



More information about the vlc-commits mailing list