[Rt-commit] r17408 - in rt/3.8/trunk: lib/RT/Interface/Web/Mason
sartak at bestpractical.com
sartak at bestpractical.com
Mon Dec 29 16:09:49 EST 2008
Author: sartak
Date: Mon Dec 29 16:09:49 2008
New Revision: 17408
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/lib/RT/Interface/Web/Mason/ApacheHandler.pm
Log:
r77995 at onn: sartak | 2008-12-29 16:09:41 -0500
Same code deserves the same comment ( code duplication :( )
Modified: rt/3.8/trunk/lib/RT/Interface/Web/Mason/ApacheHandler.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Interface/Web/Mason/ApacheHandler.pm (original)
+++ rt/3.8/trunk/lib/RT/Interface/Web/Mason/ApacheHandler.pm Mon Dec 29 16:09:49 2008
@@ -17,6 +17,9 @@
$r->content_type($type);
open my $fh, "<$file" or die "Can't open $file: $!";
binmode($fh);
+
+ # Read 16384 byte chunks instead of splitting on newlines (so it works
+ # better for binary files)
local $/ = \16384;
$r->print($_) while <$fh>;
return;
More information about the Rt-commit
mailing list