about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/HTTP.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index d523bd42..6576bf68 100644
--- a/lib/PublicInbox/HTTP.pm
+++ b/lib/PublicInbox/HTTP.pm
@@ -228,7 +228,7 @@ sub response_write {
                                 my $buf = $body->getline;
                                 if (defined $buf) {
                                         $write->($buf);
-                                        if ($self->{write_buf}) {
+                                        if ($self->{write_buf_size}) {
                                                 $body->watch_read(0);
                                                 $self->write($restart_read);
                                         }
@@ -243,7 +243,7 @@ sub response_write {
                                 local $/ = \8192;
                                 while (defined(my $buf = $body->getline)) {
                                         $write->($buf);
-                                        if ($self->{write_buf}) {
+                                        if ($self->{write_buf_size}) {
                                                 $self->write($pull);
                                                 return;
                                         }