about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwAttach.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-02-13 22:44:42 +0000
committerEric Wong <e@80x24.org>2019-02-13 22:55:11 +0000
commit17b71a0c6265677275718771b35adb08ed480db8 (patch)
treea05c27bd460a24aa5f5c3de7b07d16d5829b5120 /lib/PublicInbox/WwwAttach.pm
parente74c5fbca438166ce99f3466cf960c3baf8805b2 (diff)
downloadpublic-inbox-17b71a0c6265677275718771b35adb08ed480db8.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/WwwAttach.pm')
-rw-r--r--lib/PublicInbox/WwwAttach.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/WwwAttach.pm b/lib/PublicInbox/WwwAttach.pm
index b1504f52..d690ce41 100644
--- a/lib/PublicInbox/WwwAttach.pm
+++ b/lib/PublicInbox/WwwAttach.pm
@@ -5,6 +5,7 @@
 package PublicInbox::WwwAttach; # internal package
 use strict;
 use warnings;
+use bytes (); # only for bytes::length
 use Email::MIME::ContentType qw(parse_content_type);
 use PublicInbox::MIME;
 use PublicInbox::MsgIter;