Content types in responses

1 view
Skip to first unread message

akira

unread,
May 6, 2009, 3:07:35 AM5/6/09
to glashammer
Can one change the content type headers when sending back a response?
If yes, how?

Thanks

Ali Afshar

unread,
May 6, 2009, 4:19:47 AM5/6/09
to glash...@googlegroups.com
akira wrote:
> Can one change the content type headers when sending back a response?
> If yes, how?
>
>
Yes, you can pass mimetype= into render_response, or into the Response
constructor. The default is mimetype='text/html'.

Ali

Voltron

unread,
May 6, 2009, 1:25:31 PM5/6/09
to glashammer
Thanks
Reply all
Reply to author
Forward
0 new messages