Commits

Horst Gutmann committed dc4d627

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

This should fix some issues with testing multipart requests.

Comments (0)

Files changed (1)

         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):
         """