assume direct string.replace is good enought to avoid a stringbuild use
parent
41078f8d51
commit
85a75ce0bc
|
@ -532,7 +532,6 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
|
||||||
{
|
{
|
||||||
HttpWebResponse response = null;
|
HttpWebResponse response = null;
|
||||||
Stream resStream = null;
|
Stream resStream = null;
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
byte[] buf = new byte[HttpBodyMaxLenMAX + 16];
|
byte[] buf = new byte[HttpBodyMaxLenMAX + 16];
|
||||||
string tempString = null;
|
string tempString = null;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
@ -637,10 +636,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
|
||||||
if(totalBodyBytes > 0)
|
if(totalBodyBytes > 0)
|
||||||
{
|
{
|
||||||
tempString = Util.UTF8.GetString(buf, 0, totalBodyBytes);
|
tempString = Util.UTF8.GetString(buf, 0, totalBodyBytes);
|
||||||
sb.Append(tempString);
|
ResponseBody = tempString.Replace("\r", "");
|
||||||
sb.Replace("\r", "");
|
|
||||||
ResponseBody = sb.ToString();
|
|
||||||
sb.Clear();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ResponseBody = "";
|
ResponseBody = "";
|
||||||
|
|
Loading…
Reference in New Issue