diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/LSLHttp')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs index e93266c..9c5596b 100644 --- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs | |||
@@ -172,9 +172,9 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
172 | 172 | ||
173 | string uri = "/lslhttp/" + urlcode.ToString(); | 173 | string uri = "/lslhttp/" + urlcode.ToString(); |
174 | 174 | ||
175 | m_HttpServer.AddPollServiceHTTPHandler( | 175 | PollServiceEventArgs args = new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode, 25000); |
176 | uri, | 176 | args.Type = PollServiceEventArgs.EventType.LslHttp; |
177 | new PollServiceEventArgs(HttpRequestHandler, HasEvents, GetEvents, NoEvents, urlcode,25000)); | 177 | m_HttpServer.AddPollServiceHTTPHandler(uri, args); |
178 | 178 | ||
179 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); | 179 | engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_GRANTED", url }); |
180 | } | 180 | } |
@@ -422,7 +422,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp | |||
422 | } | 422 | } |
423 | private Hashtable GetEvents(UUID requestID, UUID sessionID, string request) | 423 | private Hashtable GetEvents(UUID requestID, UUID sessionID, string request) |
424 | { | 424 | { |
425 | UrlData url = null; | 425 | UrlData url = null; |
426 | RequestData requestData = null; | 426 | RequestData requestData = null; |
427 | 427 | ||
428 | lock (m_RequestMap) | 428 | lock (m_RequestMap) |