Correct positioning of timeout modifier in the SynchronousRestObjectRequester

avinationmerge
Tom Grimshaw 2010-07-04 19:25:54 -07:00
parent f3e902092a
commit 7665013ad8
1 changed files with 1 additions and 1 deletions

View File

@ -77,6 +77,7 @@ namespace OpenSim.Framework.Servers.HttpServer
WebRequest request = WebRequest.Create(requestUrl);
request.Method = verb;
request.Timeout = pTimeout * 1000;
if ((verb == "POST") || (verb == "PUT"))
{
@ -96,7 +97,6 @@ namespace OpenSim.Framework.Servers.HttpServer
int length = (int) buffer.Length;
request.ContentLength = length;
request.Timeout = pTimeout * 1000;
Stream requestStream = null;
try
{