aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs21
1 files changed, 2 insertions, 19 deletions
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 46b511d..ad74b9b 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -461,10 +461,7 @@ namespace OpenSim.Server.Handlers.Simulation
461 461
462 Stream inputStream; 462 Stream inputStream;
463 if (httpRequest.ContentType == "application/x-gzip") 463 if (httpRequest.ContentType == "application/x-gzip")
464 {
465 m_log.DebugFormat("[XXX]: Update called with application/x-gzip");
466 inputStream = new GZipStream(request, CompressionMode.Decompress); 464 inputStream = new GZipStream(request, CompressionMode.Decompress);
467 }
468 else 465 else
469 { 466 {
470 m_log.DebugFormat("[XXX]: Update called with {0}", httpRequest.ContentType); 467 m_log.DebugFormat("[XXX]: Update called with {0}", httpRequest.ContentType);
@@ -474,22 +471,8 @@ namespace OpenSim.Server.Handlers.Simulation
474 Encoding encoding = Encoding.UTF8; 471 Encoding encoding = Encoding.UTF8;
475 StreamReader reader = new StreamReader(inputStream, encoding); 472 StreamReader reader = new StreamReader(inputStream, encoding);
476 473
477 try 474 string requestBody = reader.ReadToEnd();
478 { 475 keysvals.Add("body", requestBody);
479 string requestBody = reader.ReadToEnd();
480 m_log.DebugFormat("[XXX] body {0}", requestBody);
481 keysvals.Add("body", requestBody);
482 }
483 catch (Exception e)
484 {
485 m_log.DebugFormat("[AGENT HANDLER]: Exception readin gzip stream: {0}", e);
486 httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
487 return new byte[0];
488 }
489 finally
490 {
491 reader.Close();
492 }
493 476
494 httpResponse.StatusCode = 200; 477 httpResponse.StatusCode = 200;
495 httpResponse.ContentType = "text/html"; 478 httpResponse.ContentType = "text/html";