diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 19 |
2 files changed, 5 insertions, 28 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 235fbbb..c0faad8 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -358,9 +358,8 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
358 | m_proxyurl = config.Configs["Startup"].GetString("HttpProxy"); | 358 | m_proxyurl = config.Configs["Startup"].GetString("HttpProxy"); |
359 | m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions"); | 359 | m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions"); |
360 | 360 | ||
361 | <<<<<<< HEAD | 361 | |
362 | m_outboundUrlFilter = new OutboundUrlFilter("Script HTTP request module", config); | 362 | m_outboundUrlFilter = new OutboundUrlFilter("Script HTTP request module", config); |
363 | ======= | ||
364 | int maxThreads = 15; | 363 | int maxThreads = 15; |
365 | 364 | ||
366 | IConfig httpConfig = config.Configs["HttpRequestModule"]; | 365 | IConfig httpConfig = config.Configs["HttpRequestModule"]; |
@@ -368,7 +367,6 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
368 | { | 367 | { |
369 | maxThreads = httpConfig.GetInt("MaxPoolThreads", maxThreads); | 368 | maxThreads = httpConfig.GetInt("MaxPoolThreads", maxThreads); |
370 | } | 369 | } |
371 | >>>>>>> avn/ubitvar | ||
372 | 370 | ||
373 | m_pendingRequests = new Dictionary<UUID, HttpRequestClass>(); | 371 | m_pendingRequests = new Dictionary<UUID, HttpRequestClass>(); |
374 | 372 | ||
@@ -532,16 +530,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
532 | 530 | ||
533 | try | 531 | try |
534 | { | 532 | { |
535 | <<<<<<< HEAD | ||
536 | Request = (HttpWebRequest)WebRequest.Create(Url); | 533 | Request = (HttpWebRequest)WebRequest.Create(Url); |
537 | Request.AllowAutoRedirect = false; | 534 | Request.AllowAutoRedirect = false; |
538 | ======= | ||
539 | Request = (HttpWebRequest) WebRequest.Create(Url); | ||
540 | 535 | ||
541 | //This works around some buggy HTTP Servers like Lighttpd | 536 | //This works around some buggy HTTP Servers like Lighttpd |
542 | Request.ServicePoint.Expect100Continue = false; | 537 | Request.ServicePoint.Expect100Continue = false; |
543 | 538 | ||
544 | >>>>>>> avn/ubitvar | ||
545 | Request.Method = HttpMethod; | 539 | Request.Method = HttpMethod; |
546 | Request.ContentType = HttpMIMEType; | 540 | Request.ContentType = HttpMIMEType; |
547 | 541 | ||
@@ -646,7 +640,8 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
646 | { | 640 | { |
647 | using (Stream responseStream = webRsp.GetResponseStream()) | 641 | using (Stream responseStream = webRsp.GetResponseStream()) |
648 | { | 642 | { |
649 | ResponseBody = responseStream.GetStreamString(); | 643 | using (StreamReader reader = new StreamReader(responseStream)) |
644 | ResponseBody = reader.ReadToEnd(); | ||
650 | } | 645 | } |
651 | } | 646 | } |
652 | catch | 647 | catch |
@@ -676,7 +671,6 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
676 | resStream.Close(); | 671 | resStream.Close(); |
677 | if (response != null) | 672 | if (response != null) |
678 | response.Close(); | 673 | response.Close(); |
679 | <<<<<<< HEAD | ||
680 | 674 | ||
681 | // We need to resubmit | 675 | // We need to resubmit |
682 | if ( | 676 | if ( |
@@ -724,8 +718,6 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
724 | { | 718 | { |
725 | _finished = true; | 719 | _finished = true; |
726 | } | 720 | } |
727 | ======= | ||
728 | >>>>>>> avn/ubitvar | ||
729 | } | 721 | } |
730 | 722 | ||
731 | if (ResponseBody == null) | 723 | if (ResponseBody == null) |
diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 1c3a714..93a4f09 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | |||
@@ -380,28 +380,13 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm | |||
380 | 380 | ||
381 | if (sp != null) | 381 | if (sp != null) |
382 | { | 382 | { |
383 | <<<<<<< HEAD | 383 | // Send message to avatar |
384 | // ignore if a child agent this is restricted to inside one | ||
385 | // region | ||
386 | if (sp.IsChildAgent) | ||
387 | return; | ||
388 | |||
389 | // Channel zero only goes to the avatar | ||
390 | // non zero channel messages only go to the attachments of the avatar. | ||
391 | if (channel != 0) | ||
392 | { | ||
393 | List<SceneObjectGroup> attachments = sp.GetAttachments(); | ||
394 | if (attachments.Count == 0) | ||
395 | return; | ||
396 | ======= | ||
397 | // Send message to avatar | ||
398 | if (channel == 0) | 384 | if (channel == 0) |
399 | { | 385 | { |
400 | // Channel 0 goes to viewer ONLY | 386 | // Channel 0 goes to viewer ONLY |
401 | m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Broadcast, 0, pos, name, id, target, false, false); | 387 | m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Broadcast, 0, pos, name, id, target, false, false); |
402 | return true; | 388 | return true; |
403 | } | 389 | } |
404 | >>>>>>> avn/ubitvar | ||
405 | 390 | ||
406 | List<SceneObjectGroup> attachments = sp.GetAttachments(); | 391 | List<SceneObjectGroup> attachments = sp.GetAttachments(); |
407 | 392 | ||