* 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
svn path=/trunk/mcs/; revision=86555
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 <atsushi@ximian.com>
}
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 {