about summary refs log tree commit homepage
path: root/lib/PublicInbox/ViewVCS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-02-01 06:06:04 +0000
committerEric Wong <e@80x24.org>2019-02-01 06:06:35 +0000
commitf8d9d0b2befb11597890e5ef2ea5ee7cc1d49581 (patch)
tree17ba01e19bcf0bb1c211225ec9d49fcc203ef9de /lib/PublicInbox/ViewVCS.pm
parent58700fb1830d1f854e688dfa47390d7f2eef9035 (diff)
downloadpublic-inbox-f8d9d0b2befb11597890e5ef2ea5ee7cc1d49581.tar.gz
Only to be pedantic...
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r--lib/PublicInbox/ViewVCS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index eecc51e6..d67b5eb4 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -110,7 +110,7 @@ sub solve_result {
         }
 
         my $binary = index($$blob, "\0") >= 0;
-        if ($fn) {
+        if (defined $fn) {
                 my $h = [ 'Content-Length', $size, 'Content-Type' ];
                 push(@$h, ($binary ? 'application/octet-stream' : 'text/plain'));
                 return delete($ctx->{-wcb})->([200, $h, [ $$blob ]]);