From cf402812b74f02ca54435c81512db541e5cf13bd Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 10 Mar 2015 01:03:31 +0100 Subject: Fix content type checking to confirm to newer core versions --- OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Server/Handlers/Simulation') diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index ce0e120..f912758 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs @@ -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; -- cgit v1.1