[vlc-devel] [PATCH] http access: advertize gzip encoding if supported.

Konstantin Pavlov thresh at videolan.org
Fri Sep 28 20:32:07 CEST 2012


---
 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 )
     {
-- 
1.7.10.5




More information about the vlc-devel mailing list