Commit 703ecf74 authored by Konstantin Pavlov's avatar Konstantin Pavlov Committed by Rémi Denis-Courmont

http access: advertize gzip encoding if supported (fixes #7515)

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent f74645ce
......@@ -1270,6 +1270,9 @@ static int Request( access_t *p_access, uint64_t i_tell )
net_Printf( p_access, p_sys->fd, pvs, "Referer: %s\r\n",
p_sys->psz_referrer);
}
#ifdef HAVE_ZLIB_H
net_Printf( p_access, p_sys->fd, pvs, "Accept-Encoding: gzip, deflate\r\n" );
#endif
/* Offset */
if( p_sys->i_version == 1 && ! p_sys->b_continuous )
{
......
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