diff options
Diffstat (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 1254df4..9c7f17e 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | |||
@@ -239,7 +239,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
239 | } | 239 | } |
240 | 240 | ||
241 | Stream inputStream = request; | 241 | Stream inputStream = request; |
242 | if (httpRequest.Headers["Content-Encoding"] == "gzip") | 242 | if ((httpRequest.Headers["Content-Encoding"] == "gzip") || (httpRequest.Headers["X-Content-Encoding"] == "gzip")) |
243 | inputStream = new GZipStream(inputStream, CompressionMode.Decompress); | 243 | inputStream = new GZipStream(inputStream, CompressionMode.Decompress); |
244 | 244 | ||
245 | StreamReader reader = new StreamReader(inputStream, encoding); | 245 | StreamReader reader = new StreamReader(inputStream, encoding); |
@@ -433,7 +433,7 @@ namespace OpenSim.Server.Handlers.Simulation | |||
433 | keysvals.Add("querystringkeys", querystringkeys); | 433 | keysvals.Add("querystringkeys", querystringkeys); |
434 | 434 | ||
435 | Stream inputStream = request; | 435 | Stream inputStream = request; |
436 | if (httpRequest.Headers["Content-Encoding"] == "gzip") | 436 | if ((httpRequest.Headers["Content-Encoding"] == "gzip") || (httpRequest.Headers["X-Content-Encoding"] == "gzip")) |
437 | inputStream = new GZipStream(inputStream, CompressionMode.Decompress); | 437 | inputStream = new GZipStream(inputStream, CompressionMode.Decompress); |
438 | 438 | ||
439 | Encoding encoding = Encoding.UTF8; | 439 | Encoding encoding = Encoding.UTF8; |