From 0d6d5607c7928e88791f7f2827be18b8fb7644f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 7 Aug 2007 17:03:52 +0000 Subject: [PATCH] Do not bother with the byte range when we are at offset zero --- modules/access/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2