mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
no keepalive on gridinfo
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user