Commit 5aa28459 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: fix HTTP through proxy (fixes #7417)

(cherry picked from commit b68f50f1)
parent f4d83b9a
...@@ -1246,8 +1246,9 @@ static int Request( access_t *p_access, uint64_t i_tell ) ...@@ -1246,8 +1246,9 @@ static int Request( access_t *p_access, uint64_t i_tell )
psz_path = "/"; psz_path = "/";
if( p_sys->b_proxy && pvs == NULL ) if( p_sys->b_proxy && pvs == NULL )
net_Printf( p_access, p_sys->fd, NULL, net_Printf( p_access, p_sys->fd, NULL,
"GET http://%s:%d HTTP/1.%d\r\n", "GET http://%s:%d%s HTTP/1.%d\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_path, p_sys->i_version );
else else
net_Printf( p_access, p_sys->fd, pvs, "GET %s HTTP/1.%d\r\n", net_Printf( p_access, p_sys->fd, pvs, "GET %s HTTP/1.%d\r\n",
psz_path, p_sys->i_version ); psz_path, p_sys->i_version );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment