Horst Gutmann  committed dc4d627

utils.Mixer.is_multipart now only checks the request header.

This should fix some issues with testing multipart requests.

  • Participants
  • Parent commits 9ef6ffd
  • Branches default

Comments (0)

Files changed (1)

File piston/

         self.request = request
     def is_multipart(self):
-        return 'Content-Disposition: form-data;' in self.request.raw_post_data
+        content_type = self.content_type()
+        if content_type is not None:
+            return content_type.lstrip().startswith('multipart')
+        return False
     def loader_for_type(self, ctype):