Skip to content

Commit ec5dd4c

Browse files
author
yaohuang
committed
bug fix 395547: Addressing the issue that caused stress test failure on 4.5 where 401 response message sent is received as 500 error
1 parent 8ad1c88 commit ec5dd4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Web.Http.WebHost/HttpControllerHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class HttpControllerHandler : IHttpAsyncHandler
3838
// Use the property in .NET 4.5 if available
3939
if (srPropertyInfo != null)
4040
{
41-
Action<HttpResponseBase, bool> setter = (Action<HttpResponseBase, bool>)Delegate.CreateDelegate(typeof(HttpResponseBase), srPropertyInfo.GetSetMethod(), throwOnBindFailure: false);
41+
Action<HttpResponseBase, bool> setter = (Action<HttpResponseBase, bool>)Delegate.CreateDelegate(typeof(Action<HttpResponseBase, bool>), srPropertyInfo.GetSetMethod(), throwOnBindFailure: false);
4242
return httpContext => setter(httpContext.Response, true);
4343
}
4444

0 commit comments

Comments
 (0)