about summary refs log tree commit homepage
path: root/lib/PublicInbox/Qspawn.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r--lib/PublicInbox/Qspawn.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm
index ed953002..2845bc1a 100644
--- a/lib/PublicInbox/Qspawn.pm
+++ b/lib/PublicInbox/Qspawn.pm
@@ -77,7 +77,7 @@ sub psgi_return {
         my $rd_hdr = sub {
                 my $r = sysread($rpipe, $buf, 1024, length($buf));
                 return if !defined($r) && ($!{EINTR} || $!{EAGAIN});
-                $parse_hdr->($r, $buf);
+                $parse_hdr->($r, \$buf);
         };
         my $res;
         my $async = $env->{'pi-httpd.async'};