#16822: HTTPRequest::raw_post_data broken for tests
---------------------------+-----------------------------------
Reporter: Whitney | Owner: nobody
Type: Uncategorized | Status: new
Milestone: | Component: Testing framework
Version: | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------+-----------------------------------
The `HTTPRequest::raw_post_data` method does not work for the test suite
any more. It seems that the exception is caused due to the changes in
django.http (`__init__.py`) during processing of a multipart request.
Previously it assigned `self._raw_post_data`, and not it does not. The
following change fixes the problem, but I don't know if it's exactly what
you'd want to do:
{{{
Index: django/http/__init__.py
===================================================================
--- django/http/__init__.py (revision 16821)
+++ django/http/__init__.py (working copy)
@@ -272,6 +272,7 @@
# Use already read data
data = StringIO(self._raw_post_data)
else:
+ self._raw_post_data = ''
data = self
try:
self._post, self._files =
self.parse_file_upload(self.META, data)
}}}
I would have assigned this to version 1.3.1, but there is no choice for
that.
--
Ticket URL: <https://code.djangoproject.com/ticket/16822>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.