Add notion of how you met (#633)

This commit is contained in:
Régis Freyd
2017-11-02 12:36:37 -04:00
committed by GitHub
parent 59d3531eac
commit f776aec510
46 changed files with 97165 additions and 4377 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class ApiController extends Controller
// make sure the JSON is well formatted if the given call sends a JSON
// TODO: there is probably a much better way to do that
if ($request->method() != 'GET' and $request->method() != 'DEL') {
if ($request->method() != 'GET' and $request->method() != 'DELETE') {
if (is_null(json_decode($request->getContent()))) {
return $this->setHTTPStatusCode(400)
->setErrorCode(37)