Author: mhabersack
Date: 2007-09-28 04:48:51 -0400 (Fri, 28 Sep 2007)
New Revision: 86555
Modified:
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/HttpListenerRequest.cs
Log:
2007-09-28 Marek Habersack <[EMAIL PROTECTED]>
* HttpListenerRequest.cs: HasEntityBody should return false when method
is GET/HEAD,
content_length is less than or equal to zero or the request is
chunked. Fixes bug #325296
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2007-09-28 08:42:30 UTC (rev
86554)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2007-09-28 08:48:51 UTC (rev
86555)
@@ -5,6 +5,9 @@
The DELETE method must not error out on missing Content-Length
header (this is the behavior of the MS.NET version of the
class). Fixes bug #323215.
+ HasEntityBody should return false when method is GET/HEAD,
+ content_length is less than or equal to zero or the request is
+ chunked. Fixes bug #325296
2007-08-29 Atsushi Enomoto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System/System.Net/HttpListenerRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpListenerRequest.cs 2007-09-28
08:42:30 UTC (rev 86554)
+++ trunk/mcs/class/System/System.Net/HttpListenerRequest.cs 2007-09-28
08:48:51 UTC (rev 86555)
@@ -331,7 +331,7 @@
}
public bool HasEntityBody {
- get { return (method == "GET" || method == "HEAD" ||
content_length <= 0 || is_chunked); }
+ get { return !(method == "GET" || method == "HEAD" ||
content_length <= 0 || is_chunked); }
}
public NameValueCollection Headers {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches