From fb23ef22a984edea290b1d2f22a5bd5fb5ce09af Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 27 Feb 2016 18:28:05 +0000 Subject: [PATCH] Only add footer to successful requests --- lib/App/Web/Oof.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Web/Oof.pm b/lib/App/Web/Oof.pm index 429c97f..471c200 100644 --- a/lib/App/Web/Oof.pm +++ b/lib/App/Web/Oof.pm @@ -231,7 +231,7 @@ sub app { my $app = shift; sub { my $res = $app->(@_); - push @{$res->[2]}, $footer; + push @{$res->[2]}, $footer if $res->[0] == 200; $res; } }; -- 2.39.2