]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_attach.t
view: do not offer links to 0-byte multipart attachments
[public-inbox.git] / t / psgi_attach.t
index c6f8072ff9a223c5fbd351957cbe3e6b1bf168d6..9a734f813fae590b960970aed9004da7ca8eebbf 100644 (file)
@@ -73,6 +73,8 @@ $im->init_bare;
                my $mid = '20200418222508.GA13918@dcvr';
                my $irt = '20200418222020.GA2745@dcvr';
                $res = $cb->(GET("/test/$mid/"));
+               unlike($res->content, qr! multipart/mixed, Size: 0 bytes!,
+                       '0-byte download not offered');
                like($res->content, qr/\bhref="2-embed2x\.eml"/s,
                        'href to message/rfc822 attachment visible');
                like($res->content, qr/\bhref="2\.1\.2-test\.eml"/s,