diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 14 |
1 files changed, 3 insertions, 11 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) |