(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

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to