mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fix content type checking to confirm to newer core versions
This commit is contained in:
@@ -233,7 +233,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
Encoding encoding = Encoding.UTF8;
|
||||
|
||||
Stream inputStream = null;
|
||||
if (httpRequest.ContentType == "application/x-gzip")
|
||||
if ((httpRequest.ContentType == "application/x-gzip" || httpRequest.Headers["Content-Encoding"] == "gzip") || (httpRequest.Headers["X-Content-Encoding"] == "gzip"))
|
||||
inputStream = new GZipStream(request, CompressionMode.Decompress);
|
||||
else if (httpRequest.ContentType == "application/json")
|
||||
inputStream = request;
|
||||
|
||||
Reference in New Issue
Block a user