Commit 52149194 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

UploadController: surchage aussi le texte de status des réponses.

Showing with 5 additions and 1 deletion
+5 -1
......@@ -216,6 +216,10 @@ class UploadController extends Controller
{
$data['status'] = $status;
$data['message'] = $message;
return new JsonResponse($data, $status, $headers);
$response = new JsonResponse($data, $status, $headers);
$response->setStatusCode($status, $message);
return $response;
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment