Commit bce13e75 authored by Clément Stenac's avatar Clément Stenac

Fix for requests without path when using proxy

parent b67a5067
......@@ -583,6 +583,8 @@ static int Connect( access_t *p_access, int64_t i_tell )
}
if( p_sys->b_proxy )
{
if( p_sys->url.psz_path )
{
net_Printf( VLC_OBJECT(p_access), p_sys->fd,
"GET http://%s:%d/%s HTTP/1.%d\r\n",
......@@ -590,6 +592,15 @@ static int Connect( access_t *p_access, int64_t i_tell )
p_sys->url.psz_path, p_sys->i_version );
}
else
{
net_Printf( VLC_OBJECT(p_access), p_sys->fd,
"GET http://%s:%d/ HTTP/1.%d\r\n",
p_sys->url.psz_host, p_sys->url.i_port,
p_sys->i_version );
}
}
else
{
char *psz_path = p_sys->url.psz_path;
if( !psz_path || !*psz_path )
......
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