[mod_python] util.FieldStorage wrong about method restrictions

Mike Looijmans nlv11281 at natlab.research.philips.com
Mon Aug 14 08:16:14 EDT 2006

> Really that is the only difference. Which is why both cgi.FieldStorage
> and util.FieldStorage should allow PUT as well as POST.

Your patch will also break any existing code that uses PUT to upload files to the server in any 
form. By assuming that the body contains form data, the FieldStorage object will consume the body 
and it is lost for the request.

The fact that it breaks existing code is enough reason not to change it, i think. Even if the 
current handling were not according to the RFC.


More information about the Mod_python mailing list