[Mono-bugs] [Bug 59273][Maj] Changed - HttpWebResponse.GetResponseStream() Exception when ContentLength == 0 [TEST CASE ATTACHED]
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 21:00:13 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59273
--- shadow/59273 2004-05-28 18:06:43.000000000 -0400
+++ shadow/59273.tmp.23563 2004-05-28 21:00:13.000000000 -0400
@@ -5,13 +5,13 @@
OS Details: OSX 10.3.3
Status: NEW
Resolution:
Severity: Unknown
Priority: Major
Component: Sys.Web
-AssignedTo: mono-bugs@ximian.com
+AssignedTo: gonzalo@ximian.com
ReportedBy: grompf@sublimeintervention.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: HttpWebResponse.GetResponseStream() Exception when ContentLength == 0 [TEST CASE ATTACHED]
@@ -57,6 +57,21 @@
The above patch should resolve the problem, however I'm unsure if it would break
HttpWebResponse in other places, so take it with a grain of salt.
+
+------- Additional Comments From gonzalo@ximian.com 2004-05-28 21:00 -------
+This works under MS and mono:
+
+using System;
+using System.IO;
+
+class Test {
+ static void Main ()
+ {
+ StreamReader reader = new StreamReader (Stream.Null);
+ }
+}
+
+So your patch does not fix ;-)