How to override the http content-type header in cmsms 1.10?
How to override the http content-type header in cmsms 1.10?
----------
Last edited by deactivated010521 on Tue Mar 12, 2013 5:51 pm, edited 1 time in total.
Re: How to override the http content-type header in cmsms 1.
hey - did you have any luck with a solution for this?
Re: How to override the http content-type header in cmsms 1.
for anyone interested - the only thing i found that could help me right now (as of 1.10.3) is something I borrowed for the CMSPrinting module:
// kill any output that may have happened already.
$handlers = ob_list_handlers();
for ($cnt = 0; $cnt < sizeof($handlers); $cnt++) { ob_end_clean(); }
header("Content-Type: application/json");
----
Some pretty creative code - filthy, but creative :O)
// kill any output that may have happened already.
$handlers = ob_list_handlers();
for ($cnt = 0; $cnt < sizeof($handlers); $cnt++) { ob_end_clean(); }
header("Content-Type: application/json");
----
Some pretty creative code - filthy, but creative :O)