about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index c84eefcf..50bb4331 100644
--- a/lib/PublicInbox/GitHTTPBackend.pm
+++ b/lib/PublicInbox/GitHTTPBackend.pm
@@ -73,7 +73,7 @@ sub serve {
                 my $n = 8192;
                 while ($len > 0) {
                         $n = $len if $len < $n;
-                        my $r = read($in, $buf, $n);
+                        my $r = sysread($in, $buf, $n);
                         last if (!defined($r) || $r <= 0);
                         $len -= $r;
                         $fh->write($buf);