This can be use to specify a small response using -html_tip.
use URI;
use constant PI_URL => 'https://public-inbox.org/';
use URI;
use constant PI_URL => 'https://public-inbox.org/';
sub new {
my ($class, $ctx, $cb) = @_;
sub new {
my ($class, $ctx, $cb) = @_;
- bless { nr => 0, cb => $cb, ctx => $ctx }, $class;
+ bless { nr => 0, cb => $cb || *close, ctx => $ctx }, $class;
delete $self->{cb} ? _html_end($self) : undef;
}
delete $self->{cb} ? _html_end($self) : undef;
}