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

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


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

http: fix HTTP through proxy (fixes #7417)

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

 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 531b7f8..f9a3dff 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1249,8 +1249,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