+2008-08-11 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * http2.6/http.tcl: Merged zlib crc fix from Tcl.
+
2008-04-30 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/makefile.vc: Updated the NMAKE build files.
# 2.6.8 Merged with core version in 8.5.2 and 8.4.19 and above changes.
# Core is 2.7, this v2.6.8 has defaultKeepalive 1 and different
# default -useragent.
+# 2.6.9 Merged fix for zlib crc check on 64bit systems.
package require Tcl 8.4
# keep this in sync with pkgIndex.tcl
-package provide http 2.6.8
+package provide http 2.6.9
namespace eval http {
# Allow resourcing to not clobber existing data
binary scan [string range $data end-7 end] ii crc size
set inflated [zlib inflate [string range $data $pos end-8]]
-
- if { $crc != [set chk [zlib crc32 $inflated]] } {
+ set chk [zlib crc32 $inflated]
+ if { ($crc & 0xffffffff) != ($chk & 0xffffffff)} {
return -code error "invalid data: checksum mismatch $crc != $chk"
}
return $inflated
# package ifneeded http 2.6 [list tclPkgSetup $dir http 2.6 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister}}}]
#
if {![package vsatisfies [package provide Tcl] 8.4]} {return}
-package ifneeded http 2.6.8 [list source [file join $dir http.tcl]]
+package ifneeded http 2.6.9 [list source [file join $dir http.tcl]]