Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

viewがjsonの時はencodeしてほしくないの

  • Loading branch information...
commit d5c5744c149c5a7f37f6c45cb12fa997f3c4713a 1 parent 5165bba
@nekokak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Kamui/Plugin/Encode.pm
View
2  lib/Kamui/Plugin/Encode.pm
@@ -20,7 +20,7 @@ sub register_method {
my $c = shift;
my $res = $c->res;
my $body = $res->body;
- $res->body(Encode::encode('utf8',$body));
+ $res->body(Encode::encode('utf8',$body)) unless $c->view eq 'Kamui::View::JSON';
},
},
};
Please sign in to comment.
Something went wrong with that request. Please try again.