This commit is contained in:
Marcel Pociot
2020-04-29 22:05:03 +02:00
parent 6cf206e0a2
commit b515a55325
27 changed files with 215 additions and 253 deletions

View File

@@ -8,7 +8,7 @@ function respond_json($responseData, int $statusCode = 200)
return str(new Response(
$statusCode,
['Content-Type' => 'application/json'],
json_encode($responseData)
json_encode($responseData, JSON_INVALID_UTF8_IGNORE)
));
}