Skip to content

Commit

Permalink
http access: advertize gzip encoding if supported (fixes #7515)
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Denis-Courmont <[email protected]>
  • Loading branch information
thresheek authored and Rémi Denis-Courmont committed Sep 28, 2012
1 parent f74645c commit 703ecf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/access/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 703ecf7

Please sign in to comment.