]> Sergey Matveev's repositories - public-inbox.git/commitdiff
nntp: fix redundant CRLF from "LISTGROUP GROUP RANGE"
authorEric Wong <e@80x24.org>
Sun, 8 Sep 2019 10:41:11 +0000 (10:41 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Sep 2019 10:41:47 +0000 (10:41 +0000)
Since Net::NNTP::listgroup doesn't support the range parameter,
I had to test this manually and noticed extra CRLF were emitted.

lib/PublicInbox/NNTP.pm

index 7c3f68a2b372390526bf15dea906b9e0b6bb1acd..41f1e9c1ed9e6a5321b1ead30853419b43fad644 100644 (file)
@@ -237,7 +237,7 @@ sub cmd_listgroup ($;$$) {
                long_response($self, sub {
                        $r = $mm->msg_range(\$beg, $end, 'num');
                        scalar(@$r) or return;
-                       more($self, join("\r\n", map { "$_->[0]\r\n" } @$r));
+                       more($self, join("\r\n", map { $_->[0] } @$r));
                        1;
                });
        } else { # grab every article number