Commit 4087c7c0 authored by Konstantin Pavlov's avatar Konstantin Pavlov

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

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