I am using slim framework to develop my api.Earlier everything working fine but now sudden i am not getting all headers response. I don't know whats going wrong. Here's my code :-
$app->get('/login1',function() use ($app){
$request = \Slim\Slim::getInstance()->request();
$response = \Slim\Slim::getInstance()->response();
$response['Content-Type'] = 'application/json; charset=utf-8';
$headers = $app->request->headers;
});
Using this code m only getting name & email other field is missing like location,id,type etc. I have tested on localhost & it's still working on localhost but not on server. Can anyone tell me whats wrong in this?