Commit dc80fdd6 authored by Roman Litvinenko's avatar Roman Litvinenko
Browse files

Added "Content-Type: application/json" in API response header

parent bb97a735
......@@ -54,6 +54,7 @@
* @param $response
*/
protected function response($response) {
header('Content-Type: application/json');
echo json_encode($response, JSON_PRETTY_PRINT);
}
......
Markdown is supported
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