Closed johnjohndoe closed 9 years ago
Should set HTTP response header content type: http://docs.slimframework.com/response/headers/
There is also an alias method on Slim object, which isn't documented: $app->contentType('application/json');
https://github.com/slimphp/Slim/blob/faf83069298593bdfd8482a14bda171937473fc1/Slim/Slim.php#L1060-L1067
I am going to fix it today afternoon. Thank you!
Fixed. Please copy the new index.php to the server.
done
:+1:
The JSON response from the API does not return the correct content type:
Example:
It should be
Content-Type: application/json;charset=utf-8
instead.