wsgi/request.py
changeset 5155 1dea6e0fdfc1
parent 4212 ab6573088b4a
child 5423 e15abfdcce38
--- a/wsgi/request.py	Wed Mar 31 17:02:51 2010 +0200
+++ b/wsgi/request.py	Tue Apr 06 16:50:53 2010 +0200
@@ -38,9 +38,9 @@
         post, files = self.get_posted_data()
         super(CubicWebWsgiRequest, self).__init__(vreg, https, post)
         if files is not None:
-            for fdef in files.itervalues():
-                fdef[0] = unicode(fdef[0], self.encoding)
-            self.form.update(files)
+            for key, (name, _, stream) in files.iteritems():
+                name = unicode(name, self.encoding)
+                self.form[key] = (name, stream)
         # prepare output headers
         self.headers_out = {}