[vlc-commits] http access: advertize gzip encoding if supported (fixes #7515)

Konstantin Pavlov git at videolan.org
Fri Sep 28 21:47:19 CEST 2012


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Sep 28 22:32:07 2012 +0400| [703ecf7456a80e8c967742f9f77d9643dfc7874a] | committer: Rémi Denis-Courmont

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

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=703ecf7456a80e8c967742f9f77d9643dfc7874a
---

 modules/access/http.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/http.c b/modules/access/http.c
index f9a3dff..baa1a59 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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 )
     {



More information about the vlc-commits mailing list