I try to return file download response in laravel with custom content type, the response content type comes as text/html to browser in localhost. Whereas it works fine in the server machine code. It makes debugging harder.
Is it anything to do with apache server config?
Below is the laravel code used.
return Response::download($filepath, $filename.'_questionaire.csv', array(
'Content-Type' => 'text/csv',
'Content-Disposition' => 'attachment;filename="'.$filename.'._questionaire.csv"'
));