diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs index 7bf6c1d7e6..940196ff87 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs @@ -215,6 +215,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Http /// private class ForChunkedEncoding : MessageBody { + // This causes an InvalidProgramException if made static + // https://github.com/dotnet/corefx/issues/8825 private Vector _vectorCRs = new Vector((byte)'\r'); private int _inputLength;