[Twisted-Python] twisted.web2 and blank values in POST

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Sep 13 09:28:04 MDT 2006


Hi there,

I've found a strange behaviour in twisted web2'server : the behaviour with blank values
in form parameters is not consistent between GET and POST: on GET blank values are kept while 
this is not the case on POST. I'ld have expected blank values to be kept on POST as well. Is this 
a bug or an expected behavour ?


PS: if this is a bug, an easy fix is to add keep_blank_values=True to the 
fileupload.parse_urlencoded call in server.py line 91.
-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science





More information about the Twisted-Python mailing list