diff options
author | dgp <dgp@noemail.net> | 2001-08-09 01:00:56 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2001-08-09 01:00:56 (GMT) |
commit | 4f5c441aff06e9499f190a630f918f2f345c0c86 (patch) | |
tree | 4de665abc3dfdb39a9a0c0f58bc83b5fa475cc88 /library/http | |
parent | 17f0c7e5e769d24f08d643c68bf82da3a7cabd04 (diff) | |
download | tcl-4f5c441aff06e9499f190a630f918f2f345c0c86.zip tcl-4f5c441aff06e9499f190a630f918f2f345c0c86.tar.gz tcl-4f5c441aff06e9499f190a630f918f2f345c0c86.tar.bz2 |
Add package dependency checks. Upgrade packages bundled with
Tcl 8.3.x: http 2.3.2, msgcat 1.1.1, opt 0.4.3, tcltest 1.0.1.
FossilOrigin-Name: b6aa9b01039c3ba9805ea24a6b93594f0cf1fb10
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 11 | ||||
-rw-r--r-- | library/http/pkgIndex.tcl | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 29e857a..0eb5260 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.32.2.1 2000/05/31 01:28:57 sandeep Exp $ +# RCS: @(#) $Id: http.tcl,v 1.32.2.2 2001/08/09 01:00:56 dgp Exp $ # Rough version history: # 1.0 Old http_get interface @@ -20,7 +20,8 @@ # This version also cleans up error cases and eliminates the # "ioerror" status in favor of raising an error -package provide http 2.3 +package require Tcl 8.2 +package provide http 2.3.2 namespace eval http { variable http @@ -28,7 +29,7 @@ namespace eval http { -accept */* -proxyhost {} -proxyport {} - -useragent {Tcl http client package 2.3} + -useragent {Tcl http client package 2.3.2} -proxyfilter http::ProxyRequired } @@ -853,10 +854,8 @@ proc http::formatQuery {args} { set alphanumeric a-zA-Z0-9 regsub -all \[^$alphanumeric\] $string {$formMap(&)} string - regsub -all \n $string {\\n} string - regsub -all \t $string {\\t} string regsub -all {[][{})\\]\)} $string {\\&} string - return [subst $string] + return [subst -nocommand $string] } # http::ProxyRequired -- diff --git a/library/http/pkgIndex.tcl b/library/http/pkgIndex.tcl index 32b17c7..4186a43 100644 --- a/library/http/pkgIndex.tcl +++ b/library/http/pkgIndex.tcl @@ -8,4 +8,5 @@ # script is sourced, the variable $dir must contain the # full path name of this file's directory. -package ifneeded http 2.3 [list tclPkgSetup $dir http 2.3 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister}}}] +if {![package vsatisfies [package provide Tcl] 8.2]} {return} +package ifneeded http 2.3.2 [list tclPkgSetup $dir http 2.3.2 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister}}}] |