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