vlc_bool_t *pb_bool;
int *pi_int;
int64_t *pi_64;
- vlc_value_t val;
switch( i_query )
{
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
- var_Get( p_access, "http-caching", &val );
*pi_64 = (int64_t)var_GetInteger( p_access, "http-caching" ) * 1000;
break;
if( p_sys->b_proxy )
{
- net_Printf( VLC_OBJECT(p_access), p_sys->fd,
- "GET http://%s:%d/%s HTTP/1.%d\r\n",
- p_sys->url.psz_host, p_sys->url.i_port,
- p_sys->url.psz_path, p_sys->i_version );
+ 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",
+ p_sys->url.psz_host, p_sys->url.i_port,
+ 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
{