[mod_python] set the content-type

julien.coron at free.fr julien.coron at free.fr
Fri Nov 10 08:36:28 EST 2006


Hi,

Someone can explain me why the following line works well:

request.content_type = 'text/html'


But this not:

request.headers_out.add("Content-Type","text/html")


and seems to be "httpd/unix-directory"...


Julien


More information about the Mod_python mailing list