[wsgi] don't convert form values
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 30 Sep 2015 18:03:53 +0200
changeset 10739 27f946cfe350
parent 10738 675e47b1b875
child 10740 59e89db3a67d
[wsgi] don't convert form values This is done earlier in multipart.py
wsgi/request.py
--- a/wsgi/request.py	Wed Sep 30 16:52:29 2015 +0200
+++ b/wsgi/request.py	Wed Sep 30 18:03:53 2015 +0200
@@ -150,13 +150,8 @@
         encoding = self.encoding
         for param, val in params.items():
             if isinstance(val, (tuple, list)):
-                val = [
-                    unicode(x, encoding) if isinstance(x, str) else x
-                    for x in val]
                 if len(val) == 1:
                     val = val[0]
-            elif isinstance(val, str):
-                val = unicode(val, encoding)
             if param in self.no_script_form_params and val:
                 val = self.no_script_form_param(param, val)
             if param == '_cwmsgid':