mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
clean a bit
This commit is contained in:
@@ -604,7 +604,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
return;
|
||||
}
|
||||
|
||||
OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request),context);
|
||||
OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request));
|
||||
|
||||
HandleRequest(req, resp);
|
||||
|
||||
@@ -676,8 +676,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
// }
|
||||
// }
|
||||
|
||||
response.SendChunked = false;
|
||||
|
||||
string path = request.RawUrl;
|
||||
string handlerKey = GetHandlerKey(request.HttpMethod, path);
|
||||
byte[] buffer = null;
|
||||
@@ -1308,7 +1306,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
byte[] buffer = Encoding.UTF8.GetBytes(responseString);
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
|
||||
@@ -1480,7 +1477,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
buffer = BuildLLSDResponse(request, response, llsdResponse);
|
||||
}
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
response.KeepAlive = true;
|
||||
@@ -1988,7 +1984,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
buffer = Convert.FromBase64String(responseString);
|
||||
}
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
}
|
||||
@@ -2005,7 +2000,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
string responseString = GetHTTP404(host);
|
||||
byte[] buffer = Encoding.UTF8.GetBytes(responseString);
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
|
||||
@@ -2021,11 +2015,9 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
string responseString = GetHTTP500();
|
||||
byte[] buffer = Encoding.UTF8.GetBytes(responseString);
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user