According to Michael Haggerty:
> Deleted Document::document_length member, which was redundant with
> Document::contentLength or Document.Content().length() (in an
> inconsistent way).
> 
> Deleted Document::Length(), which is better written as
> Document::Content().length().
> 
> Added Document::ContentLength() member to give access to
> Document::contentLength.

Hi, Michael.  I just wanted to give you a heads-up on this so you don't
reintroduce an old bug in htdig.  For a while, document_length was
simply set to content.length(), but this caused htsearch to report the
truncated document size, rather than the real size, when the real size
was larger than max_doc_size.  That's why there was a kludge to bump
up document_length to the Content-Length, if this could be determined,
before setting DocumentRef::DocSize() to doc.Length().  If you get
rid of document_length, you will need to set DocSize() to the larger
of Document::ContentLength() and Document::Content().length(), bearing
in mind that the former may be 0 when the HTTP server doesn't return a
Content-Length header.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to