Fix content type checking to confirm to newer core versions
parent
7caff51481
commit
cf402812b7
|
@ -233,7 +233,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||||
Encoding encoding = Encoding.UTF8;
|
Encoding encoding = Encoding.UTF8;
|
||||||
|
|
||||||
Stream inputStream = null;
|
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);
|
inputStream = new GZipStream(request, CompressionMode.Decompress);
|
||||||
else if (httpRequest.ContentType == "application/json")
|
else if (httpRequest.ContentType == "application/json")
|
||||||
inputStream = request;
|
inputStream = request;
|
||||||
|
|
Loading…
Reference in New Issue