Fix for an Issue #143

This commit is contained in:
Miroslav Stampar 2012-08-09 13:44:21 +02:00
parent 4b4288dfc8
commit 5929c89ba4

View File

@ -3353,9 +3353,7 @@ class HTMLForm:
rest, (query, frag) = parts[:-2], parts[-2:] rest, (query, frag) = parts[:-2], parts[-2:]
if method == "GET": if method == "GET":
if self.enctype != "application/x-www-form-urlencoded": self.enctype = "application/x-www-form-urlencoded" # force it
raise ValueError(
"unknown GET form encoding type '%s'" % self.enctype)
parts = rest + (urlencode(self._pairs()), None) parts = rest + (urlencode(self._pairs()), None)
uri = self._urlunparse(parts) uri = self._urlunparse(parts)
return uri, None, [] return uri, None, []