diff options
author | Eric Wong <e@80x24.org> | 2022-07-23 04:41:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-07-23 14:22:32 +0000 |
commit | 1c3e60b66e01df89afdf74990a849a5a7386f9c7 (patch) | |
tree | 5484e8e949c40ba084cf47d74a3291706d048a40 /lib/PublicInbox/NNTPdeflate.pm | |
parent | 0c62cffc23894a2f5eb1d6c9ee29973f4863a365 (diff) | |
download | public-inbox-1c3e60b66e01df89afdf74990a849a5a7386f9c7.tar.gz |
This brings NNTP closer to POP3 and IMAP implementations to allow CoW avoidance on constants.
Diffstat (limited to 'lib/PublicInbox/NNTPdeflate.pm')
-rw-r--r-- | lib/PublicInbox/NNTPdeflate.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/NNTPdeflate.pm b/lib/PublicInbox/NNTPdeflate.pm index 06b4499c..352d4842 100644 --- a/lib/PublicInbox/NNTPdeflate.pm +++ b/lib/PublicInbox/NNTPdeflate.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org> +# Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> # RFC 8054 NNTP COMPRESS DEFLATE implementation @@ -48,10 +48,10 @@ sub enable { my ($in, $err) = Compress::Raw::Zlib::Inflate->new(%IN_OPT); if ($err != Z_OK) { $self->err("Inflate->new failed: $err"); - $self->res('403 Unable to activate compression'); + $self->write(\"403 Unable to activate compression\r\n"); return; } - $self->res('206 Compression active'); + $self->write(\"206 Compression active\r\n"); bless $self, $class; $self->{zin} = $in; } |