#14035: Cannot access POST after request.encoding was set to a custom value
---------------------------+------------------------------------------------
Reporter: zimnyx | Owner: nobody
Status: new | Milestone:
Component: HTTP handling | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
Issue happens for multipart/form-data and WSGi handler.
{{{
#Django trunk r13353.
class DetectEncodingMiddleware(object):
def process_request(request):
# Lets say we define data encoding in POST param called "enc"
enc = request.POST['enc'] # request._load_post_and_files()
request.encoding = enc # request._set_encoding(): del self._post
request.POST # request._load_post_and_files() # raise
AttributeError("You cannot set the upload handlers after the upload has
been processed.");
}}}
This issue is related: #12522
--
Ticket URL: <http://code.djangoproject.com/ticket/14035>
Django <http://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.