diff options
-rw-r--r-- | VERSION | 2 | ||||
-rwxr-xr-x | urpmi-proxy.cgi | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1 +1 @@ -0.5.0 +0.5.1 diff --git a/urpmi-proxy.cgi b/urpmi-proxy.cgi index fa7ccca..583a6b1 100755 --- a/urpmi-proxy.cgi +++ b/urpmi-proxy.cgi @@ -447,6 +447,7 @@ sub flush_buffer { ${$data->{file_sent}} += ${$data->{pos}}; } # output + binmode(STDOUT); print ${$data->{buffer}}; # clear buffer ${$data->{buffer}} = ''; @@ -487,7 +488,7 @@ sub write_function { ($sec, $usec) = gettimeofday; print STDERR "[$sec,$usec]: write: print STDOUT\n" if $debug; # output - binmode STDOUT; + binmode(STDOUT); print $ptr; ($sec, $usec) = gettimeofday; print STDERR "[$sec,$usec]: write: return\n" if $debug; @@ -523,6 +524,7 @@ sub return_file { print "Last-Modified: " . $t . "\r\n"; print "\r\n"; binmode(FILE); + binmode(STDOUT); my $buf; while (read(FILE, $buf, 1024)) { print $buf; |