Workaround to allow llHTTPRequest to POST data to Lighthttpd which doesn't support Expect: 100-Continue

avinationmerge
Tom 2010-12-14 09:14:34 -08:00
parent cb51fc129e
commit 5ce296e08d
1 changed files with 4 additions and 0 deletions

View File

@ -341,6 +341,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
try
{
Request = (HttpWebRequest) WebRequest.Create(Url);
//This works around some buggy HTTP Servers like Lighttpd
Request.ServicePoint.Expect100Continue = false;
Request.Method = HttpMethod;
Request.ContentType = HttpMIMEType;