diff options
Diffstat (limited to 'lib/PublicInbox/MboxGz.pm')
-rw-r--r-- | lib/PublicInbox/MboxGz.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/MboxGz.pm b/lib/PublicInbox/MboxGz.pm index 1621cff8..ef560426 100644 --- a/lib/PublicInbox/MboxGz.pm +++ b/lib/PublicInbox/MboxGz.pm @@ -23,7 +23,7 @@ sub response { my $body = $class->new($ctx, $cb); # http://www.iana.org/assignments/media-types/application/gzip my @h = qw(Content-Type application/gzip); - if ($fn) { + if (defined $fn && $fn ne '') { $fn = to_filename($fn); push @h, 'Content-Disposition', "inline; filename=$fn.mbox.gz"; } |