Merge branch 'release' into dev
This commit is contained in:
commit
7f0602d2b1
|
|
@ -327,21 +327,12 @@ namespace Microsoft.AspNetCore.WebUtilities
|
||||||
builder.WriteByte(b);
|
builder.WriteByte(b);
|
||||||
_bufferOffset++;
|
_bufferOffset++;
|
||||||
_bufferCount--;
|
_bufferCount--;
|
||||||
if (b == CR)
|
if (b == LF && foundCR)
|
||||||
{
|
{
|
||||||
foundCR = true;
|
foundCRLF = true;
|
||||||
}
|
return;
|
||||||
else if (b == LF)
|
|
||||||
{
|
|
||||||
if (foundCR)
|
|
||||||
{
|
|
||||||
foundCRLF = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
foundCR = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
foundCR = b == CR;
|
||||||
}
|
}
|
||||||
|
|
||||||
private string DecodeLine(MemoryStream builder, bool foundCRLF)
|
private string DecodeLine(MemoryStream builder, bool foundCRLF)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue