Gregory (Grisha) Trubetskoy
grisha at modpython.org
Sun Mar 7 19:15:56 EST 2004
On Sun, 7 Mar 2004, Stephane Bortzmeyer wrote: > Before writing "Hello, world", you should send HTTP headers, I believe > (your Apache probably defaults to application/octet-stream): > > req.content_type = "text/html" > req.send_http_header() A minor correction - on mod_python 3.0 and later there is no need to send headers, they are sent when needed automatically. This is really a feature of Apache rather than mod_python. So send_http_header() is a noop. Setting a content-type, however, sometimes is indeed necessary :-) Grisha
|