possibly bug in HttpWorkerRequest

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vladimir Nesterovsky

    #1

    possibly bug in HttpWorkerRequest

    Hello there,

    I don't know to whom this message is addressed, however I believe there is a
    bug in the HasEntityBody method of the HttpWorkerReque st class.

    public bool HasEntityBody()
    {
    string text1 = this.GetKnownRe questHeader(11) ;

    if ((text1 != null) && !text1.Equals(" 0"))
    return true;
    if (this.GetKnownR equestHeader(6) != null)
    return true;
    if (this.GetPreloa dedEntityBody() != null)
    return true;

    // After this point method only returns false. :-)
    if (this.IsEntireE ntityBodyIsPrel oaded())
    return false;
    return false;
    }

    P.S. .NET Reflector is used as decompilation tool.
    --
    Vladimir Nesterovsky
    visit: http://constcli.sscli.net
    e-mail: nesterovsky@ssc li.net, vladimir@nester ovsky-bros.com
    home: http://www.nesterovsky-bros.com


Working...