tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@dedasys.com (David N. Welton)
Subject Re: cvs commit: tcl-websh/src/generic url.c url.h
Date Fri, 23 Nov 2001 18:32:36 GMT

How about this:

by default, urlData->scheme is not filled in, leaving it as a config
option, which does fill it in.

At 'runtime' (when cmdurl is run), it then either fills it in with 1)
the config option (takes precedence) 2) https, if that's found amongst
the environmental variables, or 3) the default.

A bit more calculation each time around, but it does keep the code
simpler in other places, and makes the calculation at the correct time
for mod_websh (which it wasn't for my original code).

Sound ok?
-- 
David N. Welton
   Consulting: http://www.dedasys.com/
Free Software: http://people.debian.org/~davidw/
   Apache Tcl: http://tcl.apache.org/
     Personal: http://www.efn.org/~davidw/

Mime
View raw message