about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/HTTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index 6576bf68..4eb14481 100644
--- a/lib/PublicInbox/HTTP.pm
+++ b/lib/PublicInbox/HTTP.pm
@@ -200,7 +200,7 @@ sub response_write {
         my $alive = response_header_write($self, $env, $res);
 
         # middlewares such as Deflater may write empty strings
-        my $write = sub { $self->write($_[0]) if $_[0] ne '' };
+        my $write = sub { $self->write(\($_[0])) if $_[0] ne '' };
         my $close = sub {
                 if ($alive) {
                         $self->event_write; # watch for readability if done