Bug fix in SynchronousRestFormsRequester -- Write instead of WriteLine, which was causing an extra \n to be written into the buffer.
parent
de48113962
commit
69da82b39f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue