Skip to content

Commit

Permalink
doc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jan 27, 2011
1 parent 078c5ae commit 237ec18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Plack/Middleware.pm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ swap the entire response.
Plack::Util::response_cb($res, sub {
my $res = shift;
$res = [ 500, $new_headers, $new_body ]; # THIS DOES NOT WORK
$res = [ $new_status, $new_headers, $new_body ]; # THIS DOES NOT WORK
return;
});
Expand All @@ -155,7 +155,7 @@ do:
Plack::Util::response_cb($res, sub {
my $res = shift;
@$res = (500, $new_headers, $new_body); # THIS WORKS
@$res = ($new_status, $new_headers, $new_body); # THIS WORKS
return;
});
Expand Down

0 comments on commit 237ec18

Please sign in to comment.