[mod_python] "0" added after content, magically

Alex Greif alex.greif at gmail.com
Fri Aug 4 16:56:12 EDT 2006


Hi,
I am using mod_python 3.2.8 wit apache 2.0.58

the strange phenomenon is that something appends a "0" after my html
output. This happens on Unix and also on Windows.

Any Ideas ?
thanks,
ALex.


Here is my handler:

from mod_python import apache

def index(req):
    req.content_type = 'text/html'
    req.write("<html><body><h1>Hello</h1></body></html>")
    return apache.OK


here is my config:

<Directory /home/agreif/......../scripts>
    SetHandler mod_python
    PythonHandler mod_python.publisher
    PythonDebug On
</Directory>


here is the returned html code to the browser:

<html><body><h1>Hello</h1></body></html>0


More information about the Mod_python mailing list