Bug fix in SynchronousRestFormsRequester -- Write instead of WriteLine, which was causing an extra \n to be written into the buffer.

0.6.8-post-fixes
Diva Canto 2009-09-28 06:44:57 -07:00
parent de48113962
commit 69da82b39f
1 changed files with 2 additions and 2 deletions

View File

@ -59,11 +59,11 @@ namespace OpenSim.Framework.Servers.HttpServer
int length = 0; int length = 0;
using (StreamWriter writer = new StreamWriter(buffer)) using (StreamWriter writer = new StreamWriter(buffer))
{ {
writer.WriteLine(obj); writer.Write(obj);
writer.Flush(); writer.Flush();
length = (int)buffer.Length;
} }
length = (int)obj.Length;
request.ContentLength = length; request.ContentLength = length;
Stream requestStream = request.GetRequestStream(); Stream requestStream = request.GetRequestStream();