Commit 41c96dde authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* HTTP 1.0 is not seekable

* Set Connection:Close for HTTP 1.1 streams that are not continious 
parent 8c0fc2c3
......@@ -276,7 +276,9 @@ connect:
if( Connect( p_access, 0 ) )
{
/* Retry with http 1.0 */
msg_Dbg( p_access, "switching to HTTP version 1.0" );
p_sys->i_version = 0;
p_sys->b_seekable = VLC_FALSE;
if( p_access->b_die ||
Connect( p_access, 0 ) )
......@@ -969,16 +971,15 @@ static int Request( access_t *p_access, int64_t i_tell )
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "Icy-MetaData: 1\r\n" );
if( p_sys->b_continuous && p_sys->i_version == 1 )
if( p_sys->b_continuous )
{
net_Printf( VLC_OBJECT( p_access ), p_sys->fd, pvs,
"Connection: keep-alive\r\n" );
"Connection: Keep-Alive\r\n" );
}
else
else if( p_sys->i_version == 1 )
{
net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs,
net_Printf( VLC_OBJECT( p_access ), p_sys->fd, pvs,
"Connection: Close\r\n");
p_sys->b_continuous = VLC_FALSE;
}
if( net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "\r\n" ) < 0 )
......
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