Revert r6542 (#1118)

This commit is contained in:
Xavier Guimard 2017-07-11 11:50:09 +00:00
parent ac554c30f3
commit 482a6fb59d

View File

@ -1,6 +1,7 @@
package Lemonldap::NG::Common::PSGI::Request; package Lemonldap::NG::Common::PSGI::Request;
use strict; use strict;
use 5.14.0;
use Mouse; use Mouse;
use JSON; use JSON;
use Plack::Request; use Plack::Request;
@ -93,7 +94,7 @@ sub jsonBodyToObj {
$self->error('No data'); $self->error('No data');
return undef; return undef;
} }
my $j = eval { from_json( $self->content, { utf8 => 1 } ) }; my $j = eval { from_json( $self->content ) };
if ($@) { if ($@) {
$self->error("$@$!"); $self->error("$@$!");
return undef; return undef;