TEMP : try to use print_r with correct parameters, and add json_encode
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 45fca1661e
commit d309aa5442

@ -40,7 +40,7 @@ try{
} }
} }
$temp = array('response' => "Rien", 'test' => "Test Ici"); $temp = array('response' => "Rien", 'test' => "Test Ici");
$response->getBody()->write(print_r($temp,true)); $response->getBody()->write(json_encode(print_r($temp,true)));
//return $response; //return $response;
return $response->withHeader('Content-type', 'application/json'); return $response->withHeader('Content-type', 'application/json');
}); });

Loading…
Cancel
Save