summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-10-20 14:33:57 +0200
committerClaude Paroz <claude@2xlibre.net>2012-10-20 14:56:16 +0200
commitdfd4a7175119ddb422d8426dcc15902265d5a428 (patch)
tree401b547f104a9d45a098d61f40b901b6eea71243 /docs/ref
parenteed4faf16f37a8b0af06a52eada05b84dead4c0d (diff)
Fixed #5611 -- Restricted accepted content types in parsing POST data
Thanks paulegan for the report and Preston Holmes for the review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/request-response.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 0a337eba42..d7266f0aff 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -92,8 +92,14 @@ All attributes should be considered read-only, unless stated otherwise below.
.. attribute:: HttpRequest.POST
- A dictionary-like object containing all given HTTP POST parameters. See the
- :class:`QueryDict` documentation below.
+ A dictionary-like object containing all given HTTP POST parameters,
+ providing that the request contains form data. See the
+ :class:`QueryDict` documentation below. If you need to access raw or
+ non-form data posted in the request, access this through the
+ :attr:`HttpRequest.body` attribute instead.
+
+ .. versionchanged:: 1.5
+ Before Django 1.5, HttpRequest.POST contained non-form data.
It's possible that a request can come in via POST with an empty ``POST``
dictionary -- if, say, a form is requested via the POST HTTP method but