From 482a6fb59d2b8f9ebc7c9509ac6c723e387c1de1 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Tue, 11 Jul 2017 11:50:09 +0000 Subject: [PATCH] Revert r6542 (#1118) --- lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm index 0ffe70f27..e74eaaeae 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm @@ -1,6 +1,7 @@ package Lemonldap::NG::Common::PSGI::Request; use strict; +use 5.14.0; use Mouse; use JSON; use Plack::Request; @@ -93,7 +94,7 @@ sub jsonBodyToObj { $self->error('No data'); return undef; } - my $j = eval { from_json( $self->content, { utf8 => 1 } ) }; + my $j = eval { from_json( $self->content ) }; if ($@) { $self->error("$@$!"); return undef;