Strip CR from http responses and limit them to 2048 chars
parent
b7c9eb4bf7
commit
3281b99362
|
@ -433,10 +433,12 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
|
||||||
|
|
||||||
// continue building the string
|
// continue building the string
|
||||||
sb.Append(tempString);
|
sb.Append(tempString);
|
||||||
|
if (sb.Length > 2048)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} while (count > 0); // any more data to read?
|
} while (count > 0); // any more data to read?
|
||||||
|
|
||||||
ResponseBody = sb.ToString();
|
ResponseBody = sb.ToString().Replace("\r", "");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue