From: RĂ©mi Denis-Courmont Date: Tue, 7 Aug 2007 17:03:52 +0000 (+0000) Subject: Do not bother with the byte range when we are at offset zero X-Git-Tag: 0.9.0-test0~6624 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0d6d5607c7928e88791f7f2827be18b8fb7644f5;p=vlc Do not bother with the byte range when we are at offset zero --- diff --git a/modules/access/http.c b/modules/access/http.c index 83ed05b019..bff3974805 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -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 );