From 7b17b712ef4906d7439a2f8eddb1ed6cad7439ed Mon Sep 17 00:00:00 2001 From: eduardo.batista Date: Tue, 23 May 2017 17:19:27 -0300 Subject: [PATCH] [FIX] Corrigindo parametro unidade recebido pelo header. --- controlador_ws.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controlador_ws.php b/controlador_ws.php index 102a553..87ef3cd 100644 --- a/controlador_ws.php +++ b/controlador_ws.php @@ -29,7 +29,7 @@ class TokenValidationMiddleware{ } $unidade = $request->getHeader('unidade'); if($unidade){ - $rn->alterarUnidadeAtual($unidade); + $rn->alterarUnidadeAtual($unidade[0]); } $response = $next($request, $response); return $response; -- libgit2 0.21.2