Workaround to allow llHTTPRequest to POST data to Lighthttpd which doesn't support Expect: 100-Continue
parent
cb51fc129e
commit
5ce296e08d
|
@ -341,6 +341,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Request = (HttpWebRequest) WebRequest.Create(Url);
|
Request = (HttpWebRequest) WebRequest.Create(Url);
|
||||||
|
|
||||||
|
//This works around some buggy HTTP Servers like Lighttpd
|
||||||
|
Request.ServicePoint.Expect100Continue = false;
|
||||||
|
|
||||||
Request.Method = HttpMethod;
|
Request.Method = HttpMethod;
|
||||||
Request.ContentType = HttpMIMEType;
|
Request.ContentType = HttpMIMEType;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue