Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-09-29
17:06 • Closed ticket [811170ffff]: http::geturl -validate option should take boolean v... artifact: 1d4e345951 user: dkf
2003-09-23
14:14 • New ticket [811170ffff]. artifact: ebb99bc6e6 user: glennjnn

http::geturl -validate option should take boolean value

Closed / Fixed811170ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-09-23 14:14:43
% package req http
2.4.2
% set t [http::geturl http://www.tcl.tk/ -validate true]
Bad value for -validate (true), must be integer

From the http(n) man page:
     ::http::geturl url ?options?
...
          -validate boolean

The -validate option should be able to take any value
acceptable to Tcl_GetBoolean.  The "-binary boolean"
flag in http 2.4 does not exhibit this bug.
dkfplain2003-09-29 17:06:57
Logged In: YES 
user_id=79902

Caused by interference with the type checking code for
integer options.  Fix (by generalization) applied to 8.4
branch and HEAD
Log in (anonymous is fine) to add a comment.