diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-10-19 22:50:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-10-19 22:50:37 (GMT) |
commit | 278b4c9ebf643183f815790c3c646b71937f8268 (patch) | |
tree | 48ff659ae07503aceaa55c3c15cb6feee3d8e4c0 /tests/http11.test | |
parent | 704a32619c8df8155c6706100c7b22190eb7e5b2 (diff) | |
download | tcl-278b4c9ebf643183f815790c3c646b71937f8268.zip tcl-278b4c9ebf643183f815790c3c646b71937f8268.tar.gz tcl-278b4c9ebf643183f815790c3c646b71937f8268.tar.bz2 |
* generic/tclZlib.c (Tcl_ZlibStreamGet): [Bug 3081008]: Ensure that
when a bytearray gets its internals entangled with zlib for more than
a passing moment, that bytearray will never be shimmered away. This
increases the amount of copying but is simple to get right, which is a
reasonable trade-off.
* generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special
cases so that most of the time when you build up a bytearray by
appending, it actually ends up being a bytearray rather than
shimmering back and forth to string.
* tests/http11.test (check_crc): Use a simpler way to express the
functionality of this procedure.
Diffstat (limited to 'tests/http11.test')
-rw-r--r-- | tests/http11.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/http11.test b/tests/http11.test index 0cecaa1..230ce5a 100644 --- a/tests/http11.test +++ b/tests/http11.test @@ -62,7 +62,7 @@ proc meta {tok {key ""}} { proc check_crc {tok args} { set crc [meta $tok x-crc32] - if {[llength $args]} {set data [lindex $args 0]} else {set data [http::data $tok]} + set data [expr {[llength $args] ? [lindex $args 0] : [http::data $tok]}] set chk [format %x [zlib crc32 $data]] if {$crc ne $chk} { return "crc32 mismatch: $crc ne $chk" |