about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-08 02:53:03 +0000
committerEric Wong <e@80x24.org>2019-05-08 02:55:55 +0000
commita316ca7db9fd3ea7dded317ac6d4d0a6bf174fb3 (patch)
tree498c4e14812f7a9ab8557b642e3e26ffd422d6c2
parentd87137b5a49408947eb30613e8c925d24d4f3d0b (diff)
downloadpublic-inbox-a316ca7db9fd3ea7dded317ac6d4d0a6bf174fb3.tar.gz
We'll ignore blank lines from clients, since that's what innd
seems to do.
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 13591e5d..e8331577 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -122,7 +122,7 @@ sub args_ok ($$) {
 sub process_line ($$) {
         my ($self, $l) = @_;
         my ($req, @args) = split(/\s+/, $l);
-        return unless defined($req);
+        return 1 unless defined($req); # skip blank line
         $req = lc($req);
         $req = eval {
                 no strict 'refs';