Permalink
Browse files

view::jsonの仕様が古いままだった

  • Loading branch information...
1 parent c88f3a9 commit 578dda3a5e3e525984d9661049aa8bec2c7e7943 @nekokak committed Feb 15, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Kamui/View/JSON.pm
View
@@ -29,7 +29,11 @@ sub render {
$output .= $json;
$output .= ");" if $cb;
- return [ 200, [ 'Content-Type' => $content_type ], [$output] ];
+ my $res = $context->res;
+ $res->status('200');
+ $res->body($output);
+ $res->headers([ 'Content-Type' => $content_type ]);
+ $res;
}
sub _validate_callback_param {

0 comments on commit 578dda3

Please sign in to comment.