Fix content type checking to confirm to newer core versions

avinationmerge
Melanie Thielker 2015-03-10 01:03:31 +01:00
parent 7caff51481
commit cf402812b7
1 changed files with 1 additions and 1 deletions

View File

@ -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;