[HttpConnection] Bug fix: HttpListener's "IgnoreWriteExceptions" property value is...
authorbogdanov <bogdanov@macroscop.com>
Tue, 8 Dec 2015 09:00:21 +0000 (14:00 +0500)
committerBogdanov <bogdanov@macroscop.com>
Sun, 13 Dec 2015 13:29:12 +0000 (18:29 +0500)
commit10e5aba1550505184f094cc4329ce6a184551082
treebead5475af3fcd2334745d5462535b2d2d54032a
parentad12e8716dfd5c8928efcb75aab41129e7709b6b
[HttpConnection] Bug fix: HttpListener's "IgnoreWriteExceptions" property value is ignored when "Expect: 100-Continue" header set in request

The problem is connected with "Listener" property of "context" object. It is null in "GetResponseStream" method, when it's called internally from "FinishInitialization" method of "HttpListenerRequest" class. This problem is possible only in situation when we have "Expect: 100-Continue" header from http client.

This change is released under the MIT license.
mcs/class/System/System.Net/HttpConnection.cs
mcs/class/System/Test/System.Net/HttpListenerTest.cs