aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs31
1 files changed, 27 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 401dfd3..f5addc8 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1547,11 +1547,34 @@ namespace OpenSim.Framework.Servers.HttpServer
1547 1547
1548 internal void DoHTTPGruntWork(Hashtable responsedata, OSHttpResponse response) 1548 internal void DoHTTPGruntWork(Hashtable responsedata, OSHttpResponse response)
1549 { 1549 {
1550 //m_log.Info("[BASE HTTP SERVER]: Doing HTTP Grunt work with response"); 1550 int responsecode;
1551 int responsecode = (int)responsedata["int_response_code"]; 1551 string responseString;
1552 string responseString = (string)responsedata["str_response_string"]; 1552 string contentType;
1553 string contentType = (string)responsedata["content_type"];
1554 1553
1554 if (responsedata == null)
1555 {
1556 responsecode = 500;
1557 responseString = "No response could be obtained";
1558 contentType = "text/plain";
1559 responsedata = new Hashtable();
1560 }
1561 else
1562 {
1563 try
1564 {
1565 //m_log.Info("[BASE HTTP SERVER]: Doing HTTP Grunt work with response");
1566 responsecode = (int)responsedata["int_response_code"];
1567 responseString = (string)responsedata["str_response_string"];
1568 contentType = (string)responsedata["content_type"];
1569 }
1570 catch
1571 {
1572 responsecode = 500;
1573 responseString = "No response could be obtained";
1574 contentType = "text/plain";
1575 responsedata = new Hashtable();
1576 }
1577 }
1555 1578
1556 if (responsedata.ContainsKey("error_status_text")) 1579 if (responsedata.ContainsKey("error_status_text"))
1557 { 1580 {