diff options
Diffstat (limited to 'OpenSim/Framework/Servers/RestObjectPosterResponse.cs')
-rw-r--r-- | OpenSim/Framework/Servers/RestObjectPosterResponse.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/RestObjectPosterResponse.cs b/OpenSim/Framework/Servers/RestObjectPosterResponse.cs index cbc8be4..0d07f15 100644 --- a/OpenSim/Framework/Servers/RestObjectPosterResponse.cs +++ b/OpenSim/Framework/Servers/RestObjectPosterResponse.cs | |||
@@ -58,6 +58,7 @@ namespace OpenSim.Framework.Servers | |||
58 | WebRequest request = WebRequest.Create(requestUrl); | 58 | WebRequest request = WebRequest.Create(requestUrl); |
59 | request.Method = verb; | 59 | request.Method = verb; |
60 | request.ContentType = "text/xml"; | 60 | request.ContentType = "text/xml"; |
61 | request.Timeout = 10000; | ||
61 | 62 | ||
62 | MemoryStream buffer = new MemoryStream(); | 63 | MemoryStream buffer = new MemoryStream(); |
63 | 64 | ||
@@ -76,6 +77,7 @@ namespace OpenSim.Framework.Servers | |||
76 | 77 | ||
77 | Stream requestStream = request.GetRequestStream(); | 78 | Stream requestStream = request.GetRequestStream(); |
78 | requestStream.Write(buffer.ToArray(), 0, length); | 79 | requestStream.Write(buffer.ToArray(), 0, length); |
80 | requestStream.Close(); | ||
79 | // IAsyncResult result = request.BeginGetResponse(AsyncCallback, request); | 81 | // IAsyncResult result = request.BeginGetResponse(AsyncCallback, request); |
80 | request.BeginGetResponse(AsyncCallback, request); | 82 | request.BeginGetResponse(AsyncCallback, request); |
81 | } | 83 | } |