Skip to content

Commit

Permalink
適当にかきかえ
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaro committed Jan 27, 2012
1 parent 1ce471a commit 06f3f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Plack/App/Emacs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ sub call {
binmode $f, ':utf8';
my $out = <$f>;
close $f;
$out =~ s/^"(.+)"$/$1/;
my $res = $json->decode($out);
my $res = $json->decode(eval($out));
$res->[1] ||= [];
$res->[2][0] = encode_utf8 $res->[2][0] if $res;
$res || [500, ['Content-Type' => 'text/plain'], ['Internal Server Error']];
}
Expand Down

0 comments on commit 06f3f00

Please sign in to comment.