clean a bit

This commit is contained in:
UbitUmarov
2018-12-03 13:51:45 +00:00
parent 66f3c6c730
commit 037de89a75
3 changed files with 57 additions and 70 deletions

View File

@@ -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;
}