Fix bug in logging sample input at debug http level 4.

Also converts newlines to "\n" text.
0.7.3-extended
Justin Clark-Casey (justincc) 2012-09-12 23:01:07 +01:00
parent 97b1b309ce
commit 108e77fe1a
1 changed files with 1 additions and 1 deletions

View File

@ -686,7 +686,7 @@ namespace OpenSim.Framework.Servers.HttpServer
const int sampleLength = 80; const int sampleLength = 80;
char[] sampleChars = new char[sampleLength]; char[] sampleChars = new char[sampleLength];
reader.Read(sampleChars, 0, sampleLength); reader.Read(sampleChars, 0, sampleLength);
output = string.Format("[BASE HTTP SERVER]: {0}...", sampleChars); output = string.Format("[BASE HTTP SERVER]: {0}...", new string(sampleChars).Replace("\n", @"\n"));
} }
else else
{ {