Commit 0d6d5607 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not bother with the byte range when we are at offset zero

parent 738f62a6
......@@ -925,7 +925,7 @@ static int Request( access_t *p_access, int64_t i_tell )
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "User-Agent: %s\r\n",
p_sys->psz_user_agent );
/* Offset */
if( p_sys->i_version == 1 )
if( ( p_sys->i_version == 1 ) && ( i_tell > 0 ) )
{
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs,
"Range: bytes="I64Fd"-\r\n", i_tell );
......
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