summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-09 09:06:28 -0400
committerTim Graham <timograham@gmail.com>2015-07-09 09:11:02 -0400
commit340c410d58b3b760fe12dfd345799993fc3d3289 (patch)
tree241e19811a230140871db57ed138c2e82e49f3a3 /docs
parentfe367db35fc7c8acb69f3c45f99f370c34943879 (diff)
[1.8.x] Fixed #25048 -- Documented that runservers strips headers with underscores.
refs 316b8d49746933d1845d600314b002d9b64d3e3d Backport of 7b6d3104f263d9483982928604b2e51f06126ec1 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/request-response.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 6dd877efe4..e16c4d52f2 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -170,6 +170,12 @@ All attributes should be considered read-only, unless stated otherwise below.
header called ``X-Bender`` would be mapped to the ``META`` key
``HTTP_X_BENDER``.
+ Note that :djadmin:`runserver` strips all headers with underscores in the
+ name, so you won't see them in ``META``. This prevents header-spoofing
+ based on ambiguity between underscores and dashes both being normalizing to
+ underscores in WSGI environment variables. It matches the behavior of
+ Web servers like Nginx and Apache 2.4+.
+
.. attribute:: HttpRequest.user
An object of type :setting:`AUTH_USER_MODEL` representing the currently