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

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.

On Wed, 13 Sep 2006 17:28:04 +0200, Sylvain Thénault sylvain.thenault@logilab.fr wrote:
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.
Hi. You might want to post this to the twisted-web mailing list, instead.
Jean-Paul

On Wednesday 13 September à 11:45, Jean-Paul Calderone wrote:
On Wed, 13 Sep 2006 17:28:04 +0200, Sylvain Thénault sylvain.thenault@logilab.fr wrote:
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.
Hi. You might want to post this to the twisted-web mailing list, instead.
oops, good point. I've just bounced it on the web list, thx !
participants (2)
-
Jean-Paul Calderone
-
Sylvain Thénault