According to Gabriele Bartolini:
> >   Are you sure?  I override current config parameters using this type of
> >call inside libhtdig.. works fine.
> 
> I am pretty sure. So far indeed, the 'head_before_get' has always been a 
> sub-option of the persistent connection feature, which means that head 
> before get is not handled if persistent connections are off.
> 
> Also, the option works on a per-server configuration as well, which will 
> eventually override the global setting.

It would be a good idea, in the general case, for us all to learn how
to properly override config parameters in the code, so that a server
block or URL block definition doesn't override an internal override
when it's not supposed to.  However, in the case of head_before_get,
I believe the question was raised, but not actually answered, as to
whether this attribute even needs to be here.  If it's only used when
persistent connections are on, and will be fixed to be turned off when
doing an initial dig, then it will only ever take effect when doing an
update (or incremental) dig with persistent connections turned on.
I can't for the life of me imagine any benefit of turning off
head_before_get in this latter case.  Doesn't keeping this attribute
just add to code bloat, user confusion, and potential inefficiencies
for no apparent benefit?  Maybe I'm missing something here, as I'm
not as versed in HTTP/1.1 as you are.  It seems to me that htdig should
always be doing a HEAD before a GET when doing incremental digs through
persistent connections.

By the way, Gabriele, good call on the Accept-Encoding header.  It's a
simple, elegant fix to a troublesome bug.  You're right that adding
support for gzip encoding is a feature request, and not a bug fix,
and should be done after the upcoming release (not before).  Good work.

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


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to