[Mono-dev] HttpListenerRequest.HasEntityBody
Atsushi Eno
atsushi at ximian.com
Mon Mar 5 06:26:20 EST 2007
(This is a translated feedback from local users)
Hi,
It looks like our HttpListenerRequest.HasEntityBody is implemented
not according to RFC2616 section 4.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
>From the source
http://svn.myrealbox.com/source/trunk/mcs/class/System/System.Net/HttpListenerRequest.cs
it is implemented as
public bool HasEntityBody {
get { return (method == "GET" || method == "HEAD" || content_length <=
0 || is_chunked); }
}
... but the specification says nothing about the request method.
So, wouldn't it be conceptually like this?
if (Content-Length <= 0 && Transfer-Encoding == null && Content-Type !=
"multipart/byteranges")
return false;
return true;
Atsushi Eno
More information about the Mono-devel-list
mailing list