diff options
author | Tom | 2010-12-14 09:14:34 -0800 |
---|---|---|
committer | Tom | 2010-12-14 09:14:34 -0800 |
commit | 5ce296e08de8875da6feddd4a9edf4b16558009d (patch) | |
tree | 351ce7067abc338e36b367c65cfc359a4a9ba0af /OpenSim/Region/CoreModules/Scripting | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
download | opensim-SC_OLD-5ce296e08de8875da6feddd4a9edf4b16558009d.zip opensim-SC_OLD-5ce296e08de8875da6feddd4a9edf4b16558009d.tar.gz opensim-SC_OLD-5ce296e08de8875da6feddd4a9edf4b16558009d.tar.bz2 opensim-SC_OLD-5ce296e08de8875da6feddd4a9edf4b16558009d.tar.xz |
Workaround to allow llHTTPRequest to POST data to Lighthttpd which doesn't support Expect: 100-Continue
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs index d78931a..e4a2461 100644 --- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs | |||
@@ -341,6 +341,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest | |||
341 | try | 341 | try |
342 | { | 342 | { |
343 | Request = (HttpWebRequest) WebRequest.Create(Url); | 343 | Request = (HttpWebRequest) WebRequest.Create(Url); |
344 | |||
345 | //This works around some buggy HTTP Servers like Lighttpd | ||
346 | Request.ServicePoint.Expect100Continue = false; | ||
347 | |||
344 | Request.Method = HttpMethod; | 348 | Request.Method = HttpMethod; |
345 | Request.ContentType = HttpMIMEType; | 349 | Request.ContentType = HttpMIMEType; |
346 | 350 | ||