mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Export downloaded modules faster
This commit is contained in:
@@ -29,9 +29,10 @@ if ($in{'to'} == 0) {
|
||||
# Output the file
|
||||
print "Content-type: application/octet-stream\n\n";
|
||||
open(TEMP, $temp);
|
||||
while(<TEMP>) {
|
||||
print $_;
|
||||
}
|
||||
my $buf;
|
||||
while(read(TEMP, $buf, 32768)) {
|
||||
print $buf;
|
||||
}
|
||||
close(TEMP);
|
||||
unlink($temp);
|
||||
}
|
||||
|
||||
@@ -27,8 +27,9 @@ if ($in{'to'} == 0) {
|
||||
# Output the file
|
||||
print "Content-type: application/x-gzip\n\n";
|
||||
open(TEMP, $temp);
|
||||
while(<TEMP>) {
|
||||
print $_;
|
||||
my $buf;
|
||||
while(read(TEMP, $buf, 32768)) {
|
||||
print $buf;
|
||||
}
|
||||
close(TEMP);
|
||||
unlink($temp);
|
||||
|
||||
Reference in New Issue
Block a user