Diff

Differences From Artifact [10ad08f811]:

To Artifact [8e33ab2552]:


    24     24   
    25     25   		file mkdir [file dirname $file]
    26     26   
    27     27   		if {![file exists $file]} {
    28     28   			set tmpfile "${file}.new"
    29     29   
    30     30   			set fd [open $tmpfile "w"]
           31  +			fconfigure $fd -translation binary
    31     32   
    32         -			set token [::http::geturl $url -channel $fd]
           33  +			set token [::http::geturl $url -channel $fd -binary true]
    33     34   			set ncode [::http::ncode $token]
    34     35   			::http::reset $token
    35     36   			close $fd
    36     37   
    37     38   			if {$ncode == "200"} {
    38     39   				file rename -force -- $tmpfile $file
    39     40   			} else {