about summary refs log tree commit homepage
path: root/lib/PublicInbox/Filter.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Filter.pm')
-rw-r--r--lib/PublicInbox/Filter.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Filter.pm b/lib/PublicInbox/Filter.pm
index 0b1ec911..c0985ddd 100644
--- a/lib/PublicInbox/Filter.pm
+++ b/lib/PublicInbox/Filter.pm
@@ -211,7 +211,7 @@ sub collapse {
         $mime->header_set('Content-Type', $part->content_type);
         $mime->body_set($part->body_raw);
         my $cte = $part->header('Content-Transfer-Encoding');
-        if (defined($cte) && length($cte)) {
+        if (defined($cte) && $cte ne '') {
                 $mime->header_set('Content-Transfer-Encoding', $cte);
         }
         mark_changed($mime);