mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Use the "Content-Encoding" header to indicate gzipped streams
This commit is contained in:
@@ -833,7 +833,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
Stream inputStream = Util.Copy(request.InputStream);
|
||||
|
||||
if (request.ContentType == "application/x-gzip")
|
||||
if (request.Headers["Content-Encoding"] == "gzip")
|
||||
inputStream = new GZipStream(inputStream, System.IO.Compression.CompressionMode.Decompress);
|
||||
|
||||
using (StreamReader reader = new StreamReader(inputStream, Encoding.UTF8))
|
||||
|
||||
Reference in New Issue
Block a user