[vlc-commits] http access: advertize gzip encoding if supported (fixes #7515)
Konstantin Pavlov
git at videolan.org
Sat Sep 29 12:51:48 CEST 2012
vlc/vlc-2.0 | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Sep 28 22:32:07 2012 +0400| [4087c7c0edad3db4098c02fd6003b4bb2f78aca9] | committer: Konstantin Pavlov
http access: advertize gzip encoding if supported (fixes #7515)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 703ecf7456a80e8c967742f9f77d9643dfc7874a)
Signed-off-by: Konstantin Pavlov <thresh at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=4087c7c0edad3db4098c02fd6003b4bb2f78aca9
---
modules/access/http.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/http.c b/modules/access/http.c
index ba5a18f..12d2fed 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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",
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 )
{
More information about the vlc-commits
mailing list