Commit 0579ca71 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: add Accept-Encoding to reject compression

parent f539b189
...@@ -255,6 +255,7 @@ std::string HTTPConnection::buildRequestHeader(const std::string &path) const ...@@ -255,6 +255,7 @@ std::string HTTPConnection::buildRequestHeader(const std::string &path) const
req << "GET " << path << " HTTP/1.1\r\n" << req << "GET " << path << " HTTP/1.1\r\n" <<
"Host: " << hostname << "\r\n" << "Host: " << hostname << "\r\n" <<
"Cache-Control: no-cache" << "\r\n" << "Cache-Control: no-cache" << "\r\n" <<
"Accept-Encoding: " << "\r\n" <<
"User-Agent: " << std::string(psz_useragent) << "\r\n"; "User-Agent: " << std::string(psz_useragent) << "\r\n";
req << extraRequestHeaders(); req << extraRequestHeaders();
return req.str(); return req.str();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment