]> Sergey Matveev's repositories - public-inbox.git/commit
http: avoid anonymous sub for getline callback
authorEric Wong <e@80x24.org>
Sat, 21 Dec 2019 23:53:19 +0000 (23:53 +0000)
committerEric Wong <e@80x24.org>
Sun, 22 Dec 2019 03:55:34 +0000 (03:55 +0000)
commita1ad66cc2ae871c28d64325894d63ed08d3b6c1b
tree4cdd09efa8dbd28cd93ef7512a5a55b5f933413f
parentae47354a6484328685de97173ca81da249b299ee
http: avoid anonymous sub for getline callback

We can avoid the danger of self-referential subs entirely for
code internal to PublicInbox::HTTP.

This change was only made possible by
commit 8e1c3155da4edc082e8e3d8b30351f0c861757a7
("ds: pass $self to code references")
lib/PublicInbox/HTTP.pm