Supply proper type information for the various types of requests
parent
7c0bfca7a0
commit
75631e0267
|
@ -52,9 +52,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
{
|
{
|
||||||
Normal = 0,
|
Normal = 0,
|
||||||
LslHttp = 1,
|
LslHttp = 1,
|
||||||
Inventory = 2,
|
Inventory = 2
|
||||||
Texture = 3,
|
|
||||||
Mesh = 4
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PollServiceEventArgs(
|
public PollServiceEventArgs(
|
||||||
|
|
|
@ -288,6 +288,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
// Register this as a poll service
|
// Register this as a poll service
|
||||||
PollServiceInventoryEventArgs args = new PollServiceInventoryEventArgs(m_scene, agentID);
|
PollServiceInventoryEventArgs args = new PollServiceInventoryEventArgs(m_scene, agentID);
|
||||||
|
|
||||||
|
args.Type = PollServiceEventArgs.EventType.Inventory;
|
||||||
MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
|
MainServer.Instance.AddPollServiceHTTPHandler(capUrl, args);
|
||||||
|
|
||||||
string hostName = m_scene.RegionInfo.ExternalHostName;
|
string hostName = m_scene.RegionInfo.ExternalHostName;
|
||||||
|
|
|
@ -235,9 +235,9 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
||||||
|
|
||||||
string uri = "/lslhttp/" + urlcode.ToString() + "/";
|
string uri = "/lslhttp/" + urlcode.ToString() + "/";
|
||||||
|
|
||||||
m_HttpServer.AddPollServiceHTTPHandler(
|
PollServiceEventArgs args = new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode, 25000);
|
||||||
uri,
|
args.Type = PollServiceEventArgs.EventType.LslHttp;
|
||||||
new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode, 25000));
|
m_HttpServer.AddPollServiceHTTPHandler(uri, args);
|
||||||
|
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[URL MODULE]: Set up incoming request url {0} for {1} in {2} {3}",
|
"[URL MODULE]: Set up incoming request url {0} for {1} in {2} {3}",
|
||||||
|
@ -280,9 +280,9 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
||||||
|
|
||||||
string uri = "/lslhttps/" + urlcode.ToString() + "/";
|
string uri = "/lslhttps/" + urlcode.ToString() + "/";
|
||||||
|
|
||||||
m_HttpsServer.AddPollServiceHTTPHandler(
|
PollServiceEventArgs args = new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode, 25000);
|
||||||
uri,
|
args.Type = PollServiceEventArgs.EventType.LslHttp;
|
||||||
new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode, 25000));
|
m_HttpsServer.AddPollServiceHTTPHandler(uri, args);
|
||||||
|
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[URL MODULE]: Set up incoming secure request url {0} for {1} in {2} {3}",
|
"[URL MODULE]: Set up incoming secure request url {0} for {1} in {2} {3}",
|
||||||
|
|
Loading…
Reference in New Issue