From d164f350b4dd83f127fb6d6d6e74548cef06cd3e Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Tue, 24 May 2016 15:59:35 -0700 Subject: [PATCH] Add comment explaining why ForChunkedEncoding._vectorCRs is not static --- src/Microsoft.AspNetCore.Server.Kestrel/Http/MessageBody.cs | 2 ++ 1 file changed, 2 insertions(+) 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;