about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepobrowseBase.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepobrowseBase.pm')
-rw-r--r--lib/PublicInbox/RepobrowseBase.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepobrowseBase.pm b/lib/PublicInbox/RepobrowseBase.pm
index caec5ced..44f422df 100644
--- a/lib/PublicInbox/RepobrowseBase.pm
+++ b/lib/PublicInbox/RepobrowseBase.pm
@@ -24,7 +24,7 @@ sub mime_load {
         my ($self, $file) = @_;
         my %rv;
         open my $fh, '<', $file or return \%rv;
-        foreach (<$fh>) {
+        while (<$fh>) {
                 next if /^#/; # no comments
                 my ($type, @ext) = split(/\s+/);