request.raw_post_data is empty for multipart/related posts
|Reported by:||Gruffudd Williams||Owned by:||senko|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
core/handlers/wsgi.py : request.raw_post_data is set to empty string if the request self.environ.get('CONTENT_TYPE', ).startswith('multipart').
This is probably ok for multipart/form-data (file upload), but I don't think it is correct for all multipart subtypes, specifically multipart/related, in which message parts should not be considered individually but rather as parts of an aggregate whole : http://en.wikipedia.org/wiki/MIME#Related
request.raw_post_data was set correctly in 0.97 but not in 1.0.
A specific example is posting a SOAP/ebXML multipart/related message.