mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Use the "Content-Encoding" header to indicate gzipped streams
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user