Skip to content

Commit

Permalink
🐛 BASE #270 corrigindo status
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 27, 2022
1 parent 252016b commit 3104cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public static function getBodyJson($msg, Response $response,$status=200)
{
$status = empty($status)?200:$status;
$msgJson = json_encode($msg);
$response->withStatus( $status );
$response->withHeader('Content-Type', 'application/json');
$response->getBody()->write( $msgJson );
return $response->withHeader('Content-Type', 'application/json');
return $response->withStatus( $status );
}

public static function setObjVoInset(Request $request,$vo)
Expand Down

0 comments on commit 3104cc6

Please sign in to comment.