Add comment explaining why ForChunkedEncoding._vectorCRs is not static
This commit is contained in:
parent
58070099fc
commit
d164f350b4
|
|
@ -215,6 +215,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private class ForChunkedEncoding : MessageBody
|
private class ForChunkedEncoding : MessageBody
|
||||||
{
|
{
|
||||||
|
// This causes an InvalidProgramException if made static
|
||||||
|
// https://github.com/dotnet/corefx/issues/8825
|
||||||
private Vector<byte> _vectorCRs = new Vector<byte>((byte)'\r');
|
private Vector<byte> _vectorCRs = new Vector<byte>((byte)'\r');
|
||||||
|
|
||||||
private int _inputLength;
|
private int _inputLength;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue