setHeader

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

setHeader

davidam
This post has NOT been accepted by the mailing list yet.
Hello,

I'm having troubles with $this->getResponse()->setHeader('Content-Type', 'application/xml', true); the content type is not changing, what can I do?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: setHeader

samsonasik
This post has NOT been accepted by the mailing list yet.
try :

    $response->getHeaders()->addHeaderLine('Content-Type', 'application/xml');
    return $response;