@@ -26,12 +26,13 @@ if {![file exists $file]} { set tmpfile "${file}.new" set fd [open $tmpfile "w"] + fconfigure $fd -translation binary - set token [::http::geturl $url -channel $fd] + set token [::http::geturl $url -channel $fd -binary true] set ncode [::http::ncode $token] ::http::reset $token close $fd if {$ncode == "200"} {