Commits

jayd3e committed e157bce

Fixed encode_multipart.

  • Participants
  • Parent commits 62b67b8

Comments (0)

Files changed (1)

File webob/request.py

             lines.append(ct)
         lines.append('')
         if hasattr(value, 'value'):
-            if isinstance(value, bytes):
+            if isinstance(value.value, bytes):
                 lines.append(value.value.decode('utf-8'))
             else:
                 lines.append(value.value)
         else:
-            lines.append(value)
+            if isinstance(value, bytes):
+                lines.append(value.decode('utf-8'))
+            else:
+                lines.append(value)
     lines.append('--%s--' % boundary)
     return '\r\n'.join(lines)