[System.Web] HeadersCollection read only exception
In reference source HttpHeaderCollection [1] when Add, Set or Remove is called and the collection is readonly a PlatformNotSupportedException is thrown. Mono HeadersCollection was throwing NotSupportedException and Microsoft.Owin.Host.SystemWeb.OwinCallContext.RemoveAcceptEncoding was not catching the exception because it was expecting PlatformNotSupportedException. Fixes #33809 [1] http://referencesource.microsoft.com/#System.Web/HttpHeaderCollection.cs,73
Showing
想要评论请 注册 或 登录