From 17b71a0c6265677275718771b35adb08ed480db8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Feb 2019 22:44:42 +0000 Subject: ensure bytes::length is available to callers We were relying on Danga::Socket using the "bytes" pragma, previously. Nowadays, the "bytes" pragma is not recommended in general, but bytes::length remains acceptable for getting the byte-size of a scalar. --- lib/PublicInbox/HTTP.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/HTTP.pm') diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 9657b31a..e73bd810 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -12,6 +12,7 @@ use strict; use warnings; use base qw(Danga::Socket); use fields qw(httpd env rbuf input_left remote_addr remote_port forward pull); +use bytes (); # only for bytes::length use Fcntl qw(:seek); use Plack::HTTPParser qw(parse_http_request); # XS or pure Perl use HTTP::Status qw(status_message); -- cgit v1.2.3-24-ge0c7