Strip CR from http responses and limit them to 2048 chars

avinationmerge
Melanie 2011-12-05 15:57:47 +01:00
parent b7c9eb4bf7
commit 3281b99362
1 changed files with 3 additions and 1 deletions

View File

@ -433,10 +433,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
// continue building the string
sb.Append(tempString);
if (sb.Length > 2048)
break;
}
} while (count > 0); // any more data to read?
ResponseBody = sb.ToString();
ResponseBody = sb.ToString().Replace("\r", "");
}
catch (Exception e)
{