fix: respond_once uses stash flag
This commit is contained in:
@@ -41,7 +41,8 @@ sub startup {
|
||||
respond_once => sub {
|
||||
my $c = shift;
|
||||
my $callback = shift;
|
||||
return if $c->rendered;
|
||||
return if $c->stash->{'urupam.responded'};
|
||||
$c->stash->{'urupam.responded'} = 1;
|
||||
$callback->($c);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user