diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index 3948667..09891f7 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -246,7 +246,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
246 | } | 246 | } |
247 | } | 247 | } |
248 | } | 248 | } |
249 | 249 | ||
250 | htc.RequestModule = this; | 250 | htc.RequestModule = this; |
251 | htc.LocalID = localID; | 251 | htc.LocalID = localID; |
252 | htc.ItemID = itemID; | 252 | htc.ItemID = itemID; |
@@ -283,7 +283,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
283 | } | 283 | } |
284 | 284 | ||
285 | public bool StartHttpRequest(HttpRequestClass req) | 285 | public bool StartHttpRequest(HttpRequestClass req) |
286 | { | 286 | { |
287 | if (!CheckAllowed(new Uri(req.Url))) | 287 | if (!CheckAllowed(new Uri(req.Url))) |
288 | return false; | 288 | return false; |
289 | 289 | ||
@@ -541,7 +541,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
541 | try | 541 | try |
542 | { | 542 | { |
543 | Request = (HttpWebRequest)WebRequest.Create(Url); | 543 | Request = (HttpWebRequest)WebRequest.Create(Url); |
544 | Request.AllowAutoRedirect = false; | 544 | Request.AllowAutoRedirect = false; |
545 | 545 | ||
546 | //This works around some buggy HTTP Servers like Lighttpd | 546 | //This works around some buggy HTTP Servers like Lighttpd |
547 | Request.ServicePoint.Expect100Continue = false; | 547 | Request.ServicePoint.Expect100Continue = false; |
@@ -684,9 +684,9 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
684 | resStream.Close(); | 684 | resStream.Close(); |
685 | if (response != null) | 685 | if (response != null) |
686 | response.Close(); | 686 | response.Close(); |
687 | |||
688 | 687 | ||
689 | // We need to resubmit | 688 | |
689 | // We need to resubmit | ||
690 | if ( | 690 | if ( |
691 | (Status == (int)HttpStatusCode.MovedPermanently | 691 | (Status == (int)HttpStatusCode.MovedPermanently |
692 | || Status == (int)HttpStatusCode.Found | 692 | || Status == (int)HttpStatusCode.Found |