no keepalive on gridinfo

This commit is contained in:
UbitUmarov
2020-12-28 14:55:59 +00:00
parent 81e13df897
commit 0c87215c13
2 changed files with 4 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ namespace OpenSim.Server.Handlers.Grid
public void RestGetGridInfoMethod(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
httpResponse.KeepAlive = false;
if (httpRequest.HttpMethod != "GET")
{
httpResponse.StatusCode = (int)HttpStatusCode.MethodNotAllowed;
@@ -165,6 +166,8 @@ namespace OpenSim.Server.Handlers.Grid
/// </param>
public void JsonGetGridInfoMethod(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
{
httpResponse.KeepAlive = false;
if (httpRequest.HttpMethod != "GET")
{
httpResponse.StatusCode = (int)HttpStatusCode.MethodNotAllowed;

View File

@@ -50,7 +50,7 @@ namespace OpenSim.Server.Handlers.Grid
handlers.RestGetGridInfoMethod));
server.AddSimpleStreamHandler(new SimpleStreamHandler("/json_grid_info",
handlers.JsonGetGridInfoMethod));
server.AddXmlRPCHandler("get_grid_info", handlers.XmlRpcGridInfoMethod);
server.AddXmlRPCHandler("get_grid_info", handlers.XmlRpcGridInfoMethod, false);
}
}
}