Kaydet (Commit) 04ff1aff authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

Fixed #9712 -- Documented how HTTP headers are converted to request.META keys.

Based on a patch from masklinn.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 84cc0084
......@@ -142,6 +142,13 @@ All attributes except ``session`` should be considered read-only.
* ``SERVER_NAME`` -- The hostname of the server.
* ``SERVER_PORT`` -- The port of the server.
With the exception of ``CONTENT_LENGTH`` and ``CONTENT_TYPE``, as given
above, any HTTP headers in the request are converted to ``META`` keys by
converting all characters to uppercase, replacing any hyphens with
underscores and adding an ``HTTP_`` prefix to the name. So, for example, a
header called ``X-Bender`` would be mapped to the ``META`` key
``HTTP_X_BENDER``.
.. attribute:: HttpRequest.user
A ``django.contrib.auth.models.User`` object representing the currently
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment