Permalink
Browse files

stubborn old StackTrace mod doesn't want to leave my branch

  • Loading branch information...
2 parents 8a3cf86 + 1d4fe24 commit fbcdaed4b356b484fdc6c4a630ea282583f200f1 @frodwith committed Jun 17, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −10 lib/Plack/Middleware/StackTrace.pm
@@ -35,16 +35,6 @@ sub call {
$res = [500, ['Content-Type' => 'text/plain; charset=utf-8'], [ utf8_safe($text) ]];
}
}
- catch {
- my $accept = $env->{HTTP_ACCEPT};
- my $use_html = $accept =~ qr(\*/\*)
- || $accept =~ qr(text/\*)
- || $accept =~ qr(html);
-
- my $type = $use_html ? 'text/html' : 'text/plain';
- my $body = $use_html ? $trace->as_html : $trace->as_string;
- [ 500, ['Content-Type' => "$type; charset=utf-8"], [ $body ]];
- };
# break $trace here since $SIG{__DIE__} holds the ref to it, and
# $trace has refs to Standalone.pm's args ($conn etc.) and

0 comments on commit fbcdaed

Please sign in to comment.