[mod_python] apache.OK and Cookies

Graham Dumpleton grahamd at dscpl.com.au
Sun May 21 18:40:38 EDT 2006


jaba at findyourcore.com wrote ..
> I have two questions:
> 1. is 'return apache.OK' really needed? ive gone without it many times,
> and nothing goes wrong.

What version of mod_python are you using?

Can you clarify whether you are using your own handler, where it would
should be used, or whether you are using mod_python.publisher where it
would not, but if it was may simply result in a extraneous "0" at end of
output that may get overlooked.

In summary, if using your own handler, you should always return it. If
you don't, you should at least see a warning message in the Apache log
files and the results may be unpredictable as to how Apache treats the
result.

Graham


More information about the Mod_python mailing list