Charles Stevenson
core at bokeoa.com
Sun Apr 11 15:42:19 EST 2004
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I've noticed a discrepancy in the documentation between versions 2.x and 3.x in that the later doesn't have req.send_http_header(). Is this done by default in 3.x or is this a minor bug in the documentation? http://www.modpython.org/live/mod_python-2.7.8/doc-html/tut-what-it-do.html req.content_type = "text/plain" req.send_http_header() req.write("Hello World!") http://www.modpython.org/live/current/doc-html/tut-what-it-do.html req.content_type = "text/plain" req.write("Hello World!") I ran across this trying to get a bit of code that apparently works with 3.x to work with 2.7.x which didn't call req.send_http_header() and therefore most browsers just sort of sit there patiently waiting. Best Regards, Charles Stevenson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAebu7GAuLrxOyeJMRAvJSAJ0XjNvfObhKWreizOU+eddcpdYjLACeMljE vYWD5eA/MIGaRHkptEcbWiU= =vFCA -----END PGP SIGNATURE-----
|