Use the "Content-Encoding" header to indicate gzipped streams

This commit is contained in:
Oren Hurvitz
2014-03-25 16:20:21 +02:00
parent 8ecab21b37
commit b1d8aa0b64
4 changed files with 15 additions and 16 deletions

View File

@@ -181,7 +181,7 @@ namespace OpenSim.Framework.Servers.HttpServer
_request = req;
_context = context;
if (null != req.Headers["content-encoding"])
if ((null != req.Headers["content-encoding"]) && ("gzip" != req.Headers["content-encoding"]))
_contentEncoding = Encoding.GetEncoding(_request.Headers["content-encoding"]);
if (null != req.Headers["content-type"])
_contentType = _request.Headers["content-type"];