[vlc-commits] demux: adaptative: add Accept-Encoding to reject compression
Francois Cartegnie
git at videolan.org
Tue Dec 29 14:05:08 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 29 14:04:26 2015 +0100| [0579ca717d47a10c0bcf6d0177ffd665160f3595] | committer: Francois Cartegnie
demux: adaptative: add Accept-Encoding to reject compression
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0579ca717d47a10c0bcf6d0177ffd665160f3595
---
modules/demux/adaptative/http/HTTPConnection.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/adaptative/http/HTTPConnection.cpp b/modules/demux/adaptative/http/HTTPConnection.cpp
index db26141..e2a7cee 100644
--- a/modules/demux/adaptative/http/HTTPConnection.cpp
+++ b/modules/demux/adaptative/http/HTTPConnection.cpp
@@ -255,6 +255,7 @@ std::string HTTPConnection::buildRequestHeader(const std::string &path) const
req << "GET " << path << " HTTP/1.1\r\n" <<
"Host: " << hostname << "\r\n" <<
"Cache-Control: no-cache" << "\r\n" <<
+ "Accept-Encoding: " << "\r\n" <<
"User-Agent: " << std::string(psz_useragent) << "\r\n";
req << extraRequestHeaders();
return req.str();
More information about the vlc-commits
mailing list