Permalink
Browse files

* 0.04: Restore (no-op) compatibility with non-harakiri-supporting se…

…rvers.
  • Loading branch information...
1 parent 3d965d6 commit a0daf1d7cc1d13f5953899a9caefea950b95b01b @audreyt committed Mar 27, 2012
Showing with 6 additions and 2 deletions.
  1. +4 −0 Changes
  2. +2 −2 lib/Plack/Middleware/SizeLimit.pm
View
@@ -1,3 +1,7 @@
+[Changes for 0.04 - Tue Mar 27 17:11:15 CST 2012]
+
+* Restore (no-op) compatibility with non-harakiri-supporting servers.
+
[Changes for 0.03 - 2011年 6月23日 周四 15時59分11秒 CST]
* Initial release to CPAN.
@@ -13,7 +13,7 @@ use Plack::Util::Accessor qw(
check_every_n_requests
);
-our $VERSION = '0.03';
+our $VERSION = '0.04';
sub prepare_app {
my $self = shift;
@@ -28,7 +28,7 @@ sub call {
my $res = $self->app->($env);
- next unless $env->{'psgix.harakiri'} or $env->{'psgix.harakiri.supported'};
+ return $res unless $env->{'psgix.harakiri'} or $env->{'psgix.harakiri.supported'};
if (my $interval = $self->check_every_n_requests) {
my $pinc = $self->get_and_pinc_request_count;

0 comments on commit a0daf1d

Please sign in to comment.